IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

'BOUND'. Copying only a range of columns.


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
genesis786

Active User


Joined: 28 Sep 2005
Posts: 210
Location: St Katherine's Dock London

PostPosted: Thu Dec 21, 2006 12:29 pm
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
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Thu Dec 21, 2006 3:49 pm
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: 210
Location: St Katherine's Dock London

PostPosted: Thu Dec 21, 2006 7:15 pm
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: 210
Location: St Katherine's Dock London

PostPosted: Thu Dec 21, 2006 7:18 pm
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts To get the count of rows for every 1 ... DB2 3
No new posts Generate random number from range of ... COBOL Programming 3
No new posts Remote Unload of CLOB Columns DB2 6
No new posts Increase the number of columns in the... IBM Tools 3
No new posts DB2 Views with Multiple SQL & Col... DB2 8
Search our Forums:

Back to Top