IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Getting Command line data from ISPEXEC EDIT DATASET


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Mainak_Dalal

New User


Joined: 05 May 2010
Posts: 19
Location: USA

PostPosted: Tue May 28, 2013 6:01 am
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue May 28, 2013 12:53 pm
Reply with quote

What exactlty is ;;;;; supposed to do ???
Back to top
View user's profile Send private message
Stefan

Active User


Joined: 12 Jan 2006
Posts: 110
Location: Germany

PostPosted: Tue May 28, 2013 1:59 pm
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Tue May 28, 2013 9:13 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Routing command Address SDSF to other... TSO/ISPF 2
Search our Forums:

Back to Top