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
 

 

ISPF Editor: Copy records columnwise

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
raghav08
Currently Banned

New User


Joined: 03 Jun 2008
Posts: 94
Location: Bangalore

PostPosted: Fri Nov 13, 2009 10:11 pm    Post subject: ISPF Editor: Copy records columnwise
Reply with quote

Hello.

I have a flatfile (FB,LRECL=133), I want to copy the block records which comes under column 1-5 to 55-60 (at present column 55-60 is empty). Please le me know the command used for this.

Thanks.
Back to top
View user's profile Send private message

prino

Senior Member


Joined: 07 Feb 2009
Posts: 1028
Location: Oostende, Belgium

PostPosted: Fri Nov 13, 2009 11:16 pm    Post subject:
Reply with quote

If the file is small enough to be edited, start playing around with the BNDS and ) line commands, if not use SORT.
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Sat Nov 14, 2009 2:00 am    Post subject:
Reply with quote

You can write a small edit macro to read each line, use the Rexx overlay() function and rewrite the line. I assume you want to pad the extra character with a blank (source is 5 chars long, dest is 6)
Code:

Address isredit                                 
'MACRO'                                         
'(LAST) = LINENUM .ZL'                           
Do a=1 to last                                   
  '(LINE) = LINE 'a                             
  line = overlay(substr(line,1,5),line,55,6,' ')
  'LINE 'a ' = (LINE)'                           
End                                             
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 saving your settings in ISPF. VintageReceiver TSO/ISPF 9 Wed Jul 26, 2017 6:42 pm
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 7 Thu Apr 27, 2017 1:15 am
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am


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