View previous topic :: View next topic
|
Author |
Message |
sparrow
New User
Joined: 26 Mar 2007 Posts: 57 Location: Pune
|
|
|
|
murmohk1 - in an unrelated topic wrote: |
You cannot view few columns of a flat file. Use DFSORT for reformatting or extracting the required columns into another file. Sample JCL is as -
Code: |
//sortin dd dsn=your.ipfile,disp=shr
//sortout dd dsn=your.opfile,disp=.......
//sysin dd *
option copy
outrec fields=(1,20, * column 1
35,21, * column 2
100,25) * column 3
/* |
The OP file contains only the required fileds |
Hi,
I tried this, I am getting a error message " OUTREC RDW NOT INCLUDED "
Could you please help me ?
Here is my code;
//SYSIN DD *
OPTION COPY
OUTREC FIELDS=(7,6,
42,3,
244,4)
/* |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Why do you believe this is a tso/ispf question?
Which sort product is used on your system?
Why add your question as a reply to a topic that has been inactive for 2.5 years. . . |
|
Back to top |
|
|
sparrow
New User
Joined: 26 Mar 2007 Posts: 57 Location: Pune
|
|
|
|
Hi Dick,
SYNCSORT FOR Z/OS is used in my system...i just searched in web for my doubt, found this page..replied it...did not check this is a TSO or REXX or other forum.
Sparrow. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You now have your own topic
If your input is a variable length file, positions 1-4 are the RDW. The actual data begins in pos 5. |
|
Back to top |
|
|
sparrow
New User
Joined: 26 Mar 2007 Posts: 57 Location: Pune
|
|
|
|
Thanks Dick |
|
Back to top |
|
|
|