Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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
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    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

UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 755
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: 210
Location: St Katherine's Dock 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: 210
Location: St Katherine's Dock 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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copying Panvalet members to PDS LOGESHWARAN K CA Products 4 Mon Mar 06, 2017 10:45 am
No new posts outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm
No new posts Comparing Decimal and CHAR columns rakesh17684 DB2 7 Thu Oct 20, 2016 2:33 am
No new posts Differences between copying members b... E.LAI TSO/ISPF 8 Wed Mar 30, 2016 12:35 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us