View previous topic :: View next topic
|
Author |
Message |
vishal.iitr2003 Currently Banned New User
Joined: 25 Jan 2008 Posts: 18 Location: India
|
|
|
|
I am using SORT to copy records from 1 ps file to another. I want to copy only the name field.
How can I do this. |
|
Back to top |
|
|
acevedo
Active User
Joined: 11 May 2005 Posts: 344 Location: Spain
|
|
|
|
and where in the input file is that 'name field'? |
|
Back to top |
|
|
vishal.iitr2003 Currently Banned New User
Joined: 25 Jan 2008 Posts: 18 Location: India
|
|
|
|
name field is at postion 139 nad its length is 30 |
|
Back to top |
|
|
krisprems
Active Member
Joined: 27 Nov 2006 Posts: 649 Location: India
|
|
|
|
use this SORT card
Code: |
//SYSIN DD *
SORT FIELDS=COPY
OUTREC FIELDS=(139,30)
|
|
|
Back to top |
|
|
vishal.iitr2003 Currently Banned New User
Joined: 25 Jan 2008 Posts: 18 Location: India
|
|
|
|
I did the same. Its giveng an U016 abbend.
And the message is:-
OUTREC RDW NOT INCLUDED
what dos this mean. |
|
Back to top |
|
|
acevedo
Active User
Joined: 11 May 2005 Posts: 344 Location: Spain
|
|
|
|
that the input file is variable, search in the forum. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
To receive more usable replies, you need to post your jcl and control statements, the desired output, and any diagnostic info presented by the execution.
It sounds like you want to write 30-byte fixed-length records, but have specified variable length. . . |
|
Back to top |
|
|
krisprems
Active Member
Joined: 27 Nov 2006 Posts: 649 Location: India
|
|
|
|
vishal
As dick is pointing you need to provide some more info...
you need to specify the attributes(FB/VB, LRECL) of i/p and o/p files. |
|
Back to top |
|
|
|