Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Capture user entered command after ISPEXEC EDIT dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
cheryala

New User


Joined: 20 Mar 2006
Posts: 46

PostPosted: Fri Jul 27, 2007 3:05 pm    Post subject: Capture user entered command after ISPEXEC EDIT dataset
Reply with quote

Dear all,
I am giving control to user to edit a dataset using

ADDRESS ISPEXEC "EDIT DATASET('datasetname')"

My requirement is to capture user entered command at the command prompt. If he enters PF03 , then dataset has to be saved and proceed with the normal processing and if he enters CANCEL i have to go back to the start of the program.

I know that after executing the above statement if RC = 0 then user has entered PF03 and RC = 4 if user uses CANCEL command..But here if user does't modify any data then also the RC is assigned to 4. My requirement needs even if user doesn't edit dataset but presses PF03 i have to start executing next statements. So I would like to know how to find whether user has entered CANCEL or not ?

Thanks in Advance.
Cheryala
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8657
Location: Back in jolly old England

PostPosted: Fri Jul 27, 2007 7:23 pm    Post subject: Re: Capture user entered command after ISPEXEC EDIT dataset
Reply with quote

I took a copy of the IBM supplied panel ISREFR01 into my own ISPPLIB concatenation, and in the PROC area changed the VPUT line to include the ZCMD after ZSCED.
Code:

)PROC                             
  &ZCURSOR = .CURSOR             
  &ZCSROFF = .CSRPOS             
  &ZLVLINE = LVLINE(ZDATA)       
  VPUT (ZSCED ZCMD) PROFILE       
                                 
)END                             


And in the REXX we have ........
Code:

 /* REXX */                                                         
 SYSEXEC = "xxxxxxx.REXX" 
ISPPLIB = "xxxxxxx.ISPPLIB"           
 ISPSLIB = "xxxxxxx.ISPSLIB"               
                                                                     
 "ALTLIB ACTIVATE APPL(EXEC) DA('"SYSEXEC"')"     
 ADDRESS ISPEXEC "LIBDEF ISPPLIB DATASET ID('"ISPPLIB"')" STACK     
 ADDRESS ISPEXEC "LIBDEF ISPSLIB DATASET ID('"ISPSLIB"')" STACK     
 "ISPEXEC EDIT DATASET('xxxxx.xxxxx.xxxxx') PANEL(ISREFR01)" 
 RCX = RC
 "ISPEXEC VGET (ZCMD) PROFILE"
 SAY RCX ZCMD
 "ALTLIB DEACTIVATE APPL(EXEC)"


If I use CAN to CANCEL out of the edit session the display is
4 can

If I use PF3 without any data edit the display is
4

If I use PF3 with data edit the display is
0
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Sun Jul 29, 2007 10:00 am    Post subject:
Reply with quote

You can use the DATA_CHANGED command.

O.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How could i share my personal dataset... James Halley TSO/ISPF 1 Fri Mar 23, 2018 9:41 pm
No new posts Need help with 002-030 ABEND in TSO R... Terry Tallian TSO/ISPF 0 Sat Mar 17, 2018 1:13 am
This topic is locked: you cannot edit posts or make replies. How could i share my personal dataset... samenxia163 TSO/ISPF 1 Fri Mar 09, 2018 12:18 pm
No new posts Where to get sample for processing RM... vice_versa PL/I & Assembler 2 Tue Jan 16, 2018 2:03 pm
No new posts VSAM dataset not found abdulrafi JCL & VSAM 5 Fri Jan 12, 2018 11:19 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us