View previous topic :: View next topic |
Author |
Message |
chuck Beginner
Joined: 30 Nov 2007 Posts: 29 Topics: 13
|
Posted: Wed Mar 06, 2024 5:02 pm Post subject: SHIFT entire file contents |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
|
Posted: Wed Mar 06, 2024 7:37 pm Post subject: |
|
|
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
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
chuck Beginner
Joined: 30 Nov 2007 Posts: 29 Topics: 13
|
Posted: Thu Mar 07, 2024 3:25 pm Post subject: |
|
|
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 |
|
 |
|
|