I am invoking a dataset edit from REXX as
Once edited, I am typying ;;;; in the command line and then hitting F3. I am trying to capture the ";;;;" in the REXX program once the edit session is complete. But I am not able to get it. I even tried using PROCESS MACRO to capture the command line.
I am wondering how the same thing happens in SPUFI. Can someone help me here?
Basically what I am trying to do is to execute few more code if the user had used ;;;; before doing the F3.
If it was just F3, then do nothing.
You should not use a semicolon (;) in this case as this character is the default command delimiter. ISPF reads your input in the command line and separates all commands by splitting the input at the position of the command delimiter. Then these commands are invoked in sequence and the command delimiter is simply dropped. If you really want to perform some special action in the REXX program which invokes the editor based on some command input of the user, here are 2 possible approaches:
1. You might use a customized version of panel ISREDDE2 to provide an additional input field for the user to specify some additional action.
2. You might create an additional edit macro which VPUTs an indicator variable so that the main routine gets aware of the user's request.
Joined: 01 Sep 2006 Posts: 2038 Location: Silicon Valley
I am trying to capture the ";;;;" in the REXX program once the edit session is complete.
Do you realize that the editor processes anything in the command line? If it recognizes the command, it will get processed. If it is not recognized, it will try to run a macro, but you will likely get a 'command A not found' message.
You might use a customized version of panel ISREDDE2
A variation on Stefan's suggestion: you can add logic to the )PROC section of the panel. Examine &ZCMD and when you find your text, you can save it to the SHARED pool.