IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Use of pre-compiler type of variables in SORT


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
op

New User


Joined: 31 Oct 2006
Posts: 48
Location: Chennai

PostPosted: Mon Nov 06, 2006 8:32 pm
Reply with quote

Hi,

I do have to perform two sorts.
The conditions in both the sorts are the same.

For example:

Code:

//  EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG   DD SYSOUT=*
//IN    DD  DSN=----- (INPUT FILE, fb, lrecl= 80)
//OUT1  DD  DSN=---- (OUTPUT FILE1, fb, lrecl=82)
//OUT2  DD  DSN=---- (OUTPUT FILE2, fb, lrecl=82)
//TOOLIN  DD *
 COPY FROM(IN) USING(CTL1)
 COPY FROM(IN) USING(CTL2)
//CTL1CNTL  DD *
   INREC IFTHEN=(WHEN=(COND1),BUILD=(C'01',1,80)),
             IFTHEN=(WHEN=(COND2),BUILD=(C'02',1,80)),
             IFTHEN=(WHEN=(COND3),BUILD=(C'03',1,80)),
             ................................................
             ................................................
             IFTHEN=(WHEN=(COND25),BUILD=(C'25',1,80))
   OUTFIL FNAMES=OUT1,BUILD=(1,82)
//CTL2CNTL  DD *
   INREC IFTHEN=(WHEN=(COND1),BUILD=(C'24',1,80)),
             IFTHEN=(WHEN=(COND2),BUILD=(C'29',1,80)),
             IFTHEN=(WHEN=(COND3),BUILD=(C'09',1,80)),
             ................................................
             ................................................
             IFTHEN=(WHEN=(COND25),BUILD=(C'12',1,80))
   OUTFIL FNAMES=OUT2,BUILD=(1,82)


The conditions in both the control statements are the same.
I want to declare these COND1, COND2, ... , COND25 commonly as they are prone to changes frequently.

I tried using SYMNAMES, but it didn't work as the conditions exceed a single line.

Can anyone help me with this.

Thanks much in advance.

Regards,
OP
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Mon Nov 06, 2006 9:57 pm
Reply with quote

You can use DFSORT symbols for columns, fields and constants, but not for complete conditions.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts How I Found a Bug in a FORTRAN Compiler All Other Mainframe Topics 4
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top