SHIFT entire file contents
Select messages from
# through # FAQ
[/[Print]\]

MVSFORUMS.com -> TSO and ISPF

#1: SHIFT entire file contents Author: chuck PostPosted: Wed Mar 06, 2024 5:02 pm
    —
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.

#2:  Author: kolusuLocation: San Jose PostPosted: Wed Mar 06, 2024 7:37 pm
    —
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

#3:  Author: chuck PostPosted: Thu Mar 07, 2024 3:25 pm
    —
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



MVSFORUMS.com -> TSO and ISPF


output generated using printer-friendly topic mod. All times are GMT - 5 Hours

Page 1 of 1

Powered by phpBB © 2001, 2005 phpBB Group