View previous topic :: View next topic
|
Author |
Message |
gorman Currently Banned New User
Joined: 23 Sep 2008 Posts: 10 Location: Chennai
|
|
|
|
Hi,
I have an input file as shown below:
Code: |
123 PENTAFAMTS12347XL5
X455 CURRYMENTS34543XL5
T255 FIJMARSNTS34543TL5
P675 QUERYPENTS15644XL5
|
I am using below SYSIN card to copy only the records having 'XL5' at column 25 and move the content from 10th positon to 1st position of length 18 bytes.
Code: |
//SYSIN DD *
$$DD01 COPYALL IF=(25,EQ,C'XL5'),MOVE=(1,18,10)
/*
|
Though job ends with MAXCC=0, it is copying all the four records to sysout !
Present output:
Code: |
PENTAFAMTS12347XL5
CURRYMENTS34543XL5
T255 FIJMARSNTS34543TL5
QUERYPENTS15644XL5
|
Expected output:
Code: |
PENTAFAMTS12347XL5
CURRYMENTS34543XL5
QUERYPENTS15644XL5
|
Please help.
Thanks. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Try COPY rather than COPYALL. I believe COPYALL tells FileAid to ignore the test criteria and work on the entire file. |
|
Back to top |
|
|
gorman Currently Banned New User
Joined: 23 Sep 2008 Posts: 10 Location: Chennai
|
|
|
|
Hey D,
That had done the trick.
Thank you... |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
You're welcome - thanks for letting us know it worked
d |
|
Back to top |
|
|
|