Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 757
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 help to replace columns by rows Vikas Maharnawar DFSORT/ICETOOL 8 Tue Mar 06, 2018 3:27 pm
No new posts Copying only first and last word from... chandan.inst SYNCSORT 4 Wed Jan 31, 2018 4:19 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Can EDCICONV convert EBCDIC to ASCII... natt.sut IBM Tools 3 Fri Nov 17, 2017 8:46 pm
No new posts Extract Record using range of Data scorp_rahul23 DFSORT/ICETOOL 3 Wed Nov 15, 2017 11:54 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us