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
 

 

Building a sort card dynamically using syncsort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
rajatbagga

Active User


Joined: 11 Mar 2007
Posts: 188
Location: india

PostPosted: Fri Apr 04, 2008 5:12 am    Post subject: Building a sort card dynamically using syncsort
Reply with quote

Hello,

I am trying to build the below sort card dynamically:

Code:
OPTION COPY
INCLUDE COND=(1,1,BI,EQ,X''00'')
OUTFIL FNAMES=OUT,REPEAT=some number (dynamically populated)


And i am using below JCL for doing this:

Code:
//K0101@AZ JOB (7TZDSV,RAJAT),'RAJAT',CLASS=S,TIME=1440,   
//         MSGCLASS=F,NOTIFY=&SYSUID                       
//S2    EXEC  PGM=ICETOOL                                 
//TOOLMSG DD SYSOUT=*                                     
//DFSMSG  DD SYSOUT=*                                     
//T3      DD DSN=Y01317.MODIF.T33,DISP=SHR                 
//CTL3CNTL DD DSN=Y01317.MODIF.CTL3CNTL,UNIT=SYSDA,       
//            DISP=(NEW,CATLG),                           
//            SPACE=(TRK,(1,1))                           
//TOOLIN DD *                                             
  COPY FROM(T3) TO(CTL3CNTL) USING(CTL2)                   
/*                                                         
//CTL2CNTL DD *                                           
  INREC BUILD=(C' OPTION COPY',                           
       C'  INCLUDE COND=(1,1,BI,EQ,X''00'')',             
       C'  OUTFIL FNAMES=OUT,REPEAT=',                     
       +99,SUB,1,2,ZD,EDIT=(TT),80:X)   
/*   


The OUTPUT i am getting is in ONE line:

Code:
OPTION COPY  INCLUDE COND=(1,1,BI,EQ,X'00')  OUTFIL FNAMES=OUT,REPEAT= some number


I want to split this line as shown above(TOP) into three lines how can I do that.

Thanks,
Rajat
Back to top
View user's profile Send private message

sril.krishy

Active User


Joined: 30 Jul 2005
Posts: 182
Location: hyderabad

PostPosted: Fri Apr 04, 2008 12:20 pm    Post subject:
Reply with quote

rajatbagga,
Not sure whether we can use INREC and BUILD with '/' option.Alissa can throw some light on this.

But here is the other way of doing this.

Just change the card like this,

Code:

OUTFIL FNAMES=CTL3CNTL,                           
OUTREC=(C' OPTION COPY',80:X,/,                   
     C'  INCLUDE COND=(1,1,BI,EQ,X''00'')',80:X,/,
     C'  OUTFIL FNAMES=OUT,REPEAT=',             
     +99,SUB,1,2,ZD,EDIT=(TT),80:X)               


Output :
Code:


OPTION COPY                     
 INCLUDE COND=(1,1,BI,EQ,X'00')
 OUTFIL FNAMES=OUT,REPEAT=some number
OPTION COPY                     
 INCLUDE COND=(1,1,BI,EQ,X'00')
 OUTFIL FNAMES=OUT,REPEAT=some number   
OPTION COPY                     
 INCLUDE COND=(1,1,BI,EQ,X'00')
 OUTFIL FNAMES=OUT,REPEAT=some number   
OPTION COPY                     
 INCLUDE COND=(1,1,BI,EQ,X'00')
 OUTFIL FNAMES=OUT,REPEAT=some number       



Also,I think you need to modify the card to have diffrent file names for the OUT files under OUTFIL FNAMES parm.The current card you used is
poinging to same OUT file.


Thanks
Krishy
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 -> JCL & VSAM 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 Need help in building a logic Benchwarmer All Other Mainframe Topics 4 Wed Feb 22, 2017 2:49 am


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