Large Changes in ISPF

The command line on the ISPF panel is of a limited size. There will be occasions when the change command that you want to enter exceed the available space in the command line. So what can we do to get around this limitation?

Well what we can do is to split the change command into two separate change commands. All we need to do is to find a single character that doesn't appear in the file to use as a placeholder between the two changes. We do it like this:

c all 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' '$'
c all '$' 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'

This gets you almost twice the length at the expense of doing two commands instead of one. Just make sure that you choose a character that doesn't appear in the file to use as the temporary value.

 

This article written by Stephen Chapman, Felgall Pty Ltd.

go to top

FaceBook Follow
Twitter Follow
Donate