MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SHIFT entire file contents

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
chuck
Beginner


Joined: 30 Nov 2007
Posts: 25
Topics: 11

PostPosted: Wed Mar 06, 2024 5:02 pm    Post subject: SHIFT entire file contents Reply with quote

Hi,
If I use an edit macro to shift the instructions give example like this
ISREDIT SHIFT ( .ZCSR 10 where .ZCSR is the line on which the cursor is.

How would I shift all the lines?
Manually I type (( n and (( on the first and last line of the file.

I tried without specifying a cursor location but that didn't do anything.
I tried
ISREDIT SHIFT ( .ZF .ZL 10 but that errored out.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12359
Topics: 75
Location: San Jose

PostPosted: Wed Mar 06, 2024 7:37 pm    Post subject: Reply with quote

chuck,

You have to write your own DO WHILE logic to shift for each line and it is painstakingly slow. You are better running it in batch using a utility
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
chuck
Beginner


Joined: 30 Nov 2007
Posts: 25
Topics: 11

PostPosted: Thu Mar 07, 2024 3:25 pm    Post subject: Reply with quote

kolusu wrote:
chuck,

You have to write your own DO WHILE logic to shift for each line and it is painstakingly slow. You are better running it in batch using a utility


Cool- this is classic example of tunnel vision on my part! It was far simpler to do what I wanted with SORT and OUTREC. LOL!

Thanks for the pointer
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group