Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
'BOUND'. Copying only a range of columns.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
Author Message
genesis786

Active User


Joined: 28 Sep 2005
Posts: 92
Location: London

PostPosted: Thu Dec 21, 2006 12:29 pm    Post subject: 'BOUND'. Copying only a range of columns.
Reply with quote

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
View user's profile Send private message
References
UmeySan

Senior Member


Joined: 22 Aug 2006
Posts: 625
Location: Germany

PostPosted: Thu Dec 21, 2006 3:49 pm    Post subject:
Reply with quote

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
View user's profile Send private message
genesis786

Active User


Joined: 28 Sep 2005
Posts: 92
Location: London

PostPosted: Thu Dec 21, 2006 7:15 pm    Post subject:
Reply with quote

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
View user's profile Send private message
genesis786

Active User


Joined: 28 Sep 2005
Posts: 92
Location: London

PostPosted: Thu Dec 21, 2006 7:18 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1