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: 193
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: 183
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 How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm
No new posts Sort Large record length cmsmoon DFSORT/ICETOOL 14 Tue Apr 11, 2017 5:49 pm


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