View previous topic :: View next topic
|
Author |
Message |
Mainak_Dalal
New User
Joined: 05 May 2010 Posts: 19 Location: USA
|
|
|
|
Hello,
I am invoking a dataset edit from REXX as
ADDRESS ISPEXEC
"EDIT DATASET("D1")"
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. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
What exactlty is ;;;;; supposed to do ??? |
|
Back to top |
|
|
Stefan
Active User
Joined: 12 Jan 2006 Posts: 110 Location: Germany
|
|
|
|
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. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
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.
Quote: |
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. |
|
Back to top |
|
|
|