Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 195
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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts OC4 in SORT Mohan Kothakota DFSORT/ICETOOL 2 Tue Sep 12, 2017 6:30 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us