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

Where is my exec being executed


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Thu Aug 25, 2011 7:50 pm
Reply with quote

I'd like to add some code to an exec that copies a data set to an identical copy (with or without the original contents). When his is executed on the DSLIST (ISPF option 3.4), I'd like to add a bit of code to refresh the display, so that the copied data set is immediately visible, without me actually having to do a "REF" first.

Obviously, I could screen-scrape the panel, look for "DSLIST - Data Sets Matching" (or "ISRUDSL0 Data Sets Matching") combine that in a belts-and-braces approach with a search for "Command - Enter "/" to select action Message", but can anyone suggest a more sensible approach?
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Fri Sep 02, 2011 1:51 am
Reply with quote

I have not tried it, but how about:
Code:
ZCMD = 'REF'
"VPUT (ZCMD) SHARED"
"CONTROL NONDISPL ENTER"
Back to top
View user's profile Send private message
jerryte

Active User


Joined: 29 Oct 2010
Posts: 202
Location: Toronto, ON, Canada

PostPosted: Sat Sep 10, 2011 3:19 am
Reply with quote

According to the manual "ISPF User Guide Volume II" (Chapter 5 Dataset List Utility option 3.4) you should be able to use the below code to do a referesh of the dataset display
Code:
ZDLREF = 'Y'                             
ADDRESS ISPEXEC "VPUT (ZDLREF) SHARED"

However I tried it and it doesn't work. Not sure why. Maybe I am misinterpreting the manual.
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Sat Sep 17, 2011 2:17 am
Reply with quote

Quote:
However I tried it and it doesn't work. Not sure why.

The manual also mentions ZDLNDSN and ZDLMSG which do work.

For ZDLREF, I suspect that you can get the dataset information to be updated. For example, if you DISP(MOD) and write a bunch of records, the update through ZDLREF may show a higher %Used value. I did not try to confirm.

I could not get my earlier suggestion of ZCMD = "REF" to work.
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts JCL EXEC PARM data in C Java & MQSeries 2
No new posts Issue with EXEC CICS QUERY SECURITY c... CICS 6
No new posts Determine Library REXX exec was execu... CLIST & REXX 7
No new posts parmeter existence bit for URIMAP in ... CICS 1
Search our Forums:

Back to Top