View previous topic :: View next topic
|
Author |
Message |
charanmsrit
New User
Joined: 25 Oct 2007 Posts: 81 Location: Australia
|
|
|
|
Hi,
I am looking to implement a backward and forward option using a macro. in brief, i want to jump my cursor to the particular section from the cobol PERFORM statement using edit macro and at the same time with the same edit macro it should position the cursor back to the same perform statement from where it was jumped if i invoke it again without placing cursor on any other PERFORM statement. i want to store the sequence of forward operations of multiple perform statement and come back n the same sequence. can someone help me how can i store this info only for that particular view or edit session of a dataset ?? |
|
Back to top |
|
|
charanmsrit
New User
Joined: 25 Oct 2007 Posts: 81 Location: Australia
|
|
|
|
it's somewhat similar to RETRIEVE command (PF12). where are these stored in ISPF ??? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
You have several options:
1. Use internal compound variable.
2. Use QUEUE
3. Use ISPF Edit labels
O. |
|
Back to top |
|
|
charanmsrit
New User
Joined: 25 Oct 2007 Posts: 81 Location: Australia
|
|
|
|
Thanks for the reply ofer... i think my requirement is not clear above.
assume i have my cursor in a cobol program on a PERFORM statement when i invoke my macro assigned to a PF key it jumps to that particular section so when i exit from macro for first instance all stem variables are dropped. suppose i place my cursor again on another PERFORM statement and invoking macro again should jump to corresponding section. now assume that i have jumped 5 perform sections and want to jump my cursor back in sequence to the perform statements in reverse sequence, i should have stored all the line numbers. if i store it in a stem / compound variable it gets dropped on each invocation. i want to store this info for this particular edit / view session only. can you please help me on this ?? |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
So, without details of your application... you want to store status information that persists after a macro ends.
As O. recommended:
Quote: |
2. Use QUEUE
3. Use ISPF Edit labels |
to which I add:
4. store to a dataset
5. store in ISPF profile. |
|
Back to top |
|
|
|