Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Use of pre-compiler type of variables in SORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Use of pre-compiler type of variables in SORT
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 Moderator


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

PostPosted: Mon Nov 06, 2006 9:57 pm    Post subject: Re: Use of pre-compiler type of variables in SORT
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm
No new posts SORT to append Month and YEAR in MMYY... tisamf DFSORT/ICETOOL 1 Wed Mar 08, 2017 4:46 pm
No new posts Who can recomend or to know a PL1 com... Miguel Fernandez DB2 0 Tue Feb 14, 2017 1:42 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us