View previous topic :: View next topic
|
Author |
Message |
genesis786
Active User
Joined: 28 Sep 2005 Posts: 210 Location: St Katherine's Dock London
|
|
|
|
Hi,
I am faced with a problem where I want to copy records from one file into other but only upto some columns. e.g.
01XXXXXXXXX MMM 56559 0001212
This is the record in old file. In new file I want only like the following:
01XXXXXXXXX MMM 56559
Is this possible using TSO/ISPF.
I tried something like this:
==> BOUND 1 30;Cut .zl .zf
and then pasted in new file. But didn't work. What am i missing?
Rahul. |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi !
Fist you have to delete the not wanted chars in old file.
This you could achive with BOUNDS. Set Boundary for chars you want to
delete. then use max-shift left to delete. then cut & paste to new file.
Example:
AAAAA XXXX
AAAAA XXXX
bounds 10 80
((99
cut
bounds
Regards, UmeySan |
|
Back to top |
|
|
genesis786
Active User
Joined: 28 Sep 2005 Posts: 210 Location: St Katherine's Dock London
|
|
|
|
Tried something like this: (it workrd)
==> Bounds 70 *
==> c all p'^=' ''
it removed all unwanted characters from the rightmost positions...
basically wanted to have the junk removed from the file. copying wasn't required i realized later.
Thanks! |
|
Back to top |
|
|
genesis786
Active User
Joined: 28 Sep 2005 Posts: 210 Location: St Katherine's Dock London
|
|
|
|
one more thing was that - until i had set 'NUMBER OFF' or the 'UNN' TSO was not recognizing columns after 72.
==> bounds 70 80 gave error saying 'INVALID RIGHT BOUND'.
but making 'NUMBER OFF' it started recognizing till 80!
You know how and why? |
|
Back to top |
|
|
|