Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ISPF commands

Status
Not open for further replies.

suruppak

Programmer
Mar 12, 2003
17
US
Is there a TSO ISPF command that will take all of the 'to's or 'thru's (or any other set of characters you would specify)and line them up in a program??
Maybe something that would work like this:
"Move 'to' 70 all"
or something like that?

Thanks,
Jeremy
 
Hi,

You can try something like:

Code:
&c ' TO ' '  TO ' ALL 7 65

You have to check the right column. I always just look with this command while entering until they are on the right column. Count the amount of spaces!

Regards,

Crox
 
Thanks Crox, but will this only move the TOs from column 7 to column 65?
If so, is there anything that will move the TOs from random positions to position 65?
Thanks again for your help Crox.
 
Hi Jeremy,

Your best bet is to write an ISPF Macro. A Macro gives you the logical capabilities to make decisions anns to also vary parameters of the various ISPF cmds you need to accomplish the task.

Using the ISPF Macro capabilities gives you the ability to use languages like REXX and CLIST to further enhance data manipulation capabilities within the ISPF Edit function.

I played with just this problem using CLIST and ISPF Macros. If you're interested I may have the code laying around somewhere.

Regards, Jack.
 
Hi,

This will shift the ' TO ' to the right until they reach the right position if you keep entering. You can fill in any left and right column so yes, it works on 'random' positions. If you just enter that command and continu entering, you will see how it works.

Writing macro's is much more difficult, will take more time (some clients don't agree with them) and also there are situations that the TO can not shift to the right column because there is text behind. At that moment you want perhaps to split the line, etc. etc. Of course you can make a beautifier for sources. Make it in COBOL and publish it here.

Regards,

Crox
 
Jack,
I'd be interested in those ISPF macros if you have them handy.
Marc
 
Hi Mark,

The search is on, please stand by ....

or come back later, or better still, check in occasionally. :)

Regards, Jack
 
Hi Marc,

I found those macros but they're not quite what Jeremy was looking for. If you'd like to take a look anyway, contact me at jacksleight@hotmail.com and I'll send them on to you.

Regards, Jack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top