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
 
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: 1074
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 Copy Specific Groups V S Amarendra Reddy SYNCSORT 10 Thu Jan 11, 2018 1:16 am
No new posts Skip records depends on count lakshmiibmmainframes DFSORT/ICETOOL 5 Sun Dec 24, 2017 9:51 pm
No new posts Compare two PS files using ICE TOOL f... SENTHIL MURUGAAN DFSORT/ICETOOL 5 Sun Dec 24, 2017 1:26 pm
No new posts Inefficient BUILD - VB records paddin... Daniel Prosser SYNCSORT 9 Thu Dec 14, 2017 3:52 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm

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