Syncsort IFTHEN(WHEN=GROUP)



Support for NetApp SyncSort for z/OS, Visual SyncSort, SYNCINIT, SYNCLIST and SYNCTOOL

Syncsort IFTHEN(WHEN=GROUP)

Postby bhuvan!2b » Wed Nov 11, 2009 1:16 pm

Hi all,
I am working on a small code to list the limit for a given group of GDG Bases. This is the code I have written. But there seems to be some syntax error in the GROUP parameter. Could any 1 help me on this....

OPTION COPY
INCLUDE COND=(1,8,CH,EQ,C'GDG BASE',OR,8,5,CH,EQ,C'LIMIT')
INREC IFTHEN=(WHEN=GROUP,RECORDS=2,BEGIN=(1,8,CH,EQ,C'GDG BASE'),
PUSH=(35:17,36))
OUTFIL INCLUDE=(8,5,CH,EQ,C'LIMIT'),
BUILD=(35,36,C'HAS A LIMIT OF: ',
17,15,ZD,M11,LENGTH=3)
bhuvan!2b
 
Posts: 2
Joined: Wed Nov 11, 2009 1:09 pm
Has thanked: 0 time
Been thanked: 0 time

Re: DFSORT IFTHEN(WHEN=GROUP)

Postby Frank Yaeger » Wed Nov 11, 2009 11:08 pm

When I run your DFSORT control statements, I do not get any syntax errors:

  OPTION COPY                                                       
  INCLUDE COND=(1,8,CH,EQ,C'GDG BASE',OR,8,5,CH,EQ,C'LIMIT')       
  INREC IFTHEN=(WHEN=GROUP,RECORDS=2,BEGIN=(1,8,CH,EQ,C'GDG BASE'),
   PUSH=(35:17,36))                                                 
  OUTFIL INCLUDE=(8,5,CH,EQ,C'LIMIT'),                             
   BUILD=(35,36,C'HAS A LIMIT OF: ',                               
   17,15,ZD,M11,LENGTH=3)                                           


Make sure position 1 is blank in every line. If so, then show the DFSORT messages you received.
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
User avatar
Frank Yaeger
Global moderator
 
Posts: 1079
Joined: Sat Jun 09, 2007 8:44 pm
Has thanked: 0 time
Been thanked: 15 times

Re: DFSORT IFTHEN(WHEN=GROUP)

Postby bhuvan!2b » Thu Nov 12, 2009 3:32 pm

Hi...
thanks for ur rply.... i have started the sort commands in 3 rd column of my jcl.. and following is the err msg..
I guess when=group is command is not recognised in syncsort. is it so.. but it recognises when=init.. :x

 SYSIN :
  OPTION COPY
  INCLUDE COND=(1,8,CH,EQ,C'GDG BASE',OR,8,5,CH,EQ,C'LIMIT')
  INREC IFTHEN=(WHEN=GROUP,RECORDS=2,BEGIN=(1,8,CH,EQ,C'GDG BASE'),
                     *
                        PUSH=(35:17,36))
     OUTFIL INCLUDE=(8,5,CH,EQ,C'LIMIT'),
            BUILD=(35,36,C'HAS A LIMIT OF: ',
                        17,15,ZD,M11,LENGTH=3)
 WER268A  INREC STATEMENT   : SYNTAX ERROR
 WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000
 WER449I  SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
bhuvan!2b
 
Posts: 2
Joined: Wed Nov 11, 2009 1:09 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Syncsort IFTHEN(WHEN=GROUP)

Postby dick scherrer » Fri Nov 13, 2009 3:13 am

Hello,

Which release of Syncsort is being used?

WHEN=GROUP works in the current release of Syncsort.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to Syncsort/Synctool

 


  • Related topics
    Replies
    Views
    Last post