Generating dynamic sort card

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

Generating dynamic sort card

Postby creddy » Fri May 06, 2016 10:15 am

can some one help me to create dymanic sort cord as below:
Include cond=((1,2,ch,eq,07),and,(19,9,ch,eq,c'xxxxx',or,19,9,ch,eq,c'yyyyyy') )

where XXXXXXXXX or YYYYYYYYY is dynamically used from inputfile.

How is this used ((1,1,BI,NE,1,1,BI),OR,') from site example , cant we ignore this in sort card creation ? Please can some one share any more examples?

//SYSIN DD *                                                            
  OPTION COPY                                                          
  OUTFIL REMOVECC,                                                      
    HEADER1=('  SORT FIELDS=(4,4,PD,A) ',/,                                  
      '  INCLUDE COND=((1,1,BI,NE,1,1,BI),OR,'),                        
    BUILD=(C'   (4,4,PD,EQ,',1,7,C',AND,244,1,CH,EQ,C''',8,1,C'''),OR, *
    TRAILER1=('    (1,1,BI,NE,1,1,BI))')                                
Posts: 1
Joined: Fri May 06, 2016 9:58 am
Has thanked: 0 time
Been thanked: 0 time

Re: Generating dynamic sort card

Postby enrico-sorichetti » Fri May 06, 2016 12:38 pm

When You have a question, START a new topic,
Do not tailgate to another topic even if the problem is the same

topic split.
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
Global moderator
Posts: 2979
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 160 times

Re: Generating dynamic sort card

Postby NicC » Fri May 06, 2016 3:42 pm

Please use the code tags when presenting code, JCL, control cards etc - basically anything that you would see on you screen. It makes your posty more understandable.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Global moderator
Posts: 3026
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Generating dynamic sort card

Postby BillyBoyo » Sat May 07, 2016 1:11 am

The best way to do this is a two-step approach. In the first step generate sort symbols for the data on your second file. In the second step, use the sort symbols on a SYMNAMES DD and reference the symbols in the INCLUDE COND or wherever.

There are examples here.

If there are a variable number of items on your second file, instead generate the INCLUDE itself.
Global moderator
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Return to Syncsort/Synctool


  • Related topics
    Last post