View previous topic :: View next topic
|
Author |
Message |
jose.jeyan
New User
Joined: 28 Jul 2006 Posts: 60 Location: Mumbai
|
|
|
|
hi all
pls help me in achieving this.
My file contains 6 records
Input file :
*********
1234567890
1234567890
1234567890
1234567890
1234567890
1234567890
the length of file is 10 . I want to cut short the file from 10 to 8.
my output file must be like
output file :
**********
12345670
12345670
12345670
12345670
12345670
12345670
here u can see that the records in position 8 & 9 has been omiited and the rest of the records have been received in the output file.
Tony |
|
Back to top |
|
|
Gnanas N
Active Member
Joined: 06 Sep 2007 Posts: 792 Location: Chennai, India
|
|
|
|
Is this Okay?
Code: |
//SYSIN DD *
SORT FIELDS=COPY
INREC FIELDS=(1:1,7,8:10,1)
/* |
|
|
Back to top |
|
|
jose.jeyan
New User
Joined: 28 Jul 2006 Posts: 60 Location: Mumbai
|
|
|
|
yeah thanks that works fine
Thanks a lot...
Tony |
|
Back to top |
|
|
|