View previous topic :: View next topic
|
Author |
Message |
pg.kkreddy
New User
Joined: 28 Apr 2005 Posts: 1
|
|
|
|
I have one VSAM file.
Length : 1600 RECFM = FB
I have to build the key using 5 fields.
For example first 1-24 & 44:23 using this I need to build the Outfile.
Code: |
//PS010 EXEC PGM=SORT
//SORTIN DD DSN=INPUT FILE,DISP=SHR
//SORTOUT DD DSN=OUTFILE,
// DISP=(,CATLG,DELETE),
// SPACE=(CYL,(10,10))
//SYSIN DD *
OPTION COPY
OUTREC FIELDS=(1:1,2,3:3,6,9:9,10,19:44,23:42:...)
/*
//SYSOUT DD SYSOUT=*
|
My concerns is how to mention the remaining fields?
KK. |
|
Back to top |
|
|
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
HI,
Can u just display sample input and required output.
Regards
R KARTHIK |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Quote: |
My concerns is how to mention the remaining fields? |
That depends on what you want to do with the remaining fields. Do you want them in the output records after the keys, or do you want to do something else with them? You need to tell us how the output records should look before we can tell you how to code the OUTREC statement to make them look that way.
If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:
Use [URL] BBCode for External Links |
|
Back to top |
|
|
|