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: 1002
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 Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am
No new posts Customizing the ISPF HILITE Command Pedro TSO/ISPF 3 Fri Mar 03, 2017 11:49 pm
No new posts Inserting records based on conditions vickey_dw DFSORT/ICETOOL 9 Wed Feb 22, 2017 1:33 pm


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