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

Split a jcl and put it into 10 files using sort utility


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
preeth

New User


Joined: 14 Sep 2006
Posts: 11

PostPosted: Thu Sep 21, 2006 12:11 pm
Reply with quote

i want to split a jcl and put it into 10 files using sort utility. i would like to know the method to use without using iceman or ice2
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Thu Sep 21, 2006 1:24 pm
Reply with quote

hi,

Preeth. Y u wan to plit your JCL(input) into 1o output files.

I guess..your requirement is to split a inputfile in a jcl into 10 output files based on some conditions.

Yes..u can do soo by using ICEMAN, SORT etc..

All you need is to specify as:

SORT FIELDS=COPY
OUTFIL FNAMES=File1,INCLUDE=(1,2,CH,EQ,C'01')<== include a condition
OUTFIL FNAMES=File2,INCLUDE=(1,2,CH,EQ,C'02')<== include a condition
..
OUTFIL FNAMES=File10,INCLUDE=(1,2,CH,EQ,C'10')<= include a condition

File1 DD DSN=YOUR.FILE1.DSN,DISP=(NEW,CATLOG,DELETE)
File2 DD DSN=YOUR.FILE2.DSN,DISP=(NEW,CATLOG,DELETE)
..
File10 DD DSN=YOUR.FILE10.DSN,DISP=(NEW,CATLOG,DELETE)

Clear??

~Vamsi
Back to top
View user's profile Send private message
preeth

New User


Joined: 14 Sep 2006
Posts: 11

PostPosted: Thu Sep 21, 2006 5:12 pm
Reply with quote

thanks...sorry i worte it worng, i wanted a jcl to split an i/p file into tne o/p files..thanks a lot
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Thu Sep 21, 2006 5:19 pm
Reply with quote

preeth wrote:
..sorry i worte it worng


yes, you worteD it worngLY

;)
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 0
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
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 Write line by line from two files DFSORT/ICETOOL 7
Search our Forums:

Back to Top