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 ??
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 ??