View previous topic :: View next topic
|
Author |
Message |
sdwajid Currently Banned New User
Joined: 19 Jul 2007 Posts: 5 Location: hyderabad
|
|
|
|
Hi,
i want to divide each record of a dataset into different files. Firstly, i'll read a record & then first 10 fileds will be copied into File1, then from filed 11 to filed 20 will be copied or written to File2 and so on, using JCL (Syncsort or any other utility). It can be done using SELCOPY, but i need a different approach.
Thanks |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
Have you looked at the OUTFIL statement and its parameters? |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Hi,
Try this example , change the positions as per your requirement.
Code: |
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL FILES=1,OUTREC=(1,3)
OUTFIL FILES=2,OUTREC=(4,3)
OUTFIL FILES=3,OUTREC=(7,3)
/*
//*
//SORTIN DD *
111222333
//*
//SORTOF1 DD SYSOUT=*
//*
//SORTOF2 DD SYSOUT=*
//*
//SORTOF3 DD SYSOUT=*
|
Output
SORTOF1------ 111
SORTOF2------ 222
SORTOF3------ 333
Thanks,
Arun |
|
Back to top |
|
|
sdwajid Currently Banned New User
Joined: 19 Jul 2007 Posts: 5 Location: hyderabad
|
|
|
|
thanks
arcvns |
|
Back to top |
|
|
sri_mf
Active User
Joined: 31 Aug 2006 Posts: 218 Location: India
|
|
|
|
sdwajid wrote: |
Hi,
SELCOPY
Thanks |
Hi wajid acn u provide some info on SELCOPY |
|
Back to top |
|
|
sdwajid Currently Banned New User
Joined: 19 Jul 2007 Posts: 5 Location: hyderabad
|
|
|
|
Hi sri,
SELCOPY is a utility , you can use it to reorganise files and many more things. You can learn about SELCOPY by visiting this site www.cbl.com/selc.html |
|
Back to top |
|
|
sri_mf
Active User
Joined: 31 Aug 2006 Posts: 218 Location: India
|
|
|
|
Thanks wajid ) |
|
Back to top |
|
|
|