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

How to get the name of the dataset (PS or PDS) which is used


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

New User


Joined: 01 Sep 2007
Posts: 11
Location: Baltimore, MD US

PostPosted: Thu Aug 28, 2008 1:35 pm
Reply with quote

Hi,

I have a small requirement. I have to get the name of the dataset (PS or PDS) which is being viewed, browsed or edited. Can any one help me in this regard?

Actually my requirement is whenever a user searches for a string in a source PDS, that opens a Search file (PS or PDS). I have to take the member in which the search string is found and open that member from the source PDS.

Please help me...
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Aug 28, 2008 2:47 pm
Reply with quote

What about multiple occurences of the string in different members / datasets ?
Back to top
View user's profile Send private message
dvpkumar217

New User


Joined: 01 Sep 2007
Posts: 11
Location: Baltimore, MD US

PostPosted: Thu Aug 28, 2008 2:55 pm
Reply with quote

I am planning to use the .ZCSR to capture which member to open. I am planning to read the search dataset record by record and save the source PDS and the member and open them later. But the difficulty in getting the name of the Search file. Each user can have their own convention of naming the search files, so how to get the search dataset name???? Any help...
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Aug 28, 2008 2:58 pm
Reply with quote

To keep it easy, you will have to determine which dataset name is allocated and used irrespective of the user.
Back to top
View user's profile Send private message
dvpkumar217

New User


Joined: 01 Sep 2007
Posts: 11
Location: Baltimore, MD US

PostPosted: Thu Aug 28, 2008 3:04 pm
Reply with quote

expat wrote:
To keep it easy, you will have to determine which dataset name is allocated and used irrespective of the user.



Yes.. That's correct...
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Aug 28, 2008 3:13 pm
Reply with quote

Pre allocate it in the routine

"ALLOF FI(SEARCH) DA('"userid".what.ever') ..........................."
Back to top
View user's profile Send private message
dvpkumar217

New User


Joined: 01 Sep 2007
Posts: 11
Location: Baltimore, MD US

PostPosted: Thu Aug 28, 2008 3:24 pm
Reply with quote

But I don't have the DA name to allocate it. I want to get the Dataset name where the user uses the cursor .zcsr. Is there any way to get that???
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Aug 28, 2008 3:34 pm
Reply with quote

in view or edit, use the ispf macro command MEMBER.
In browse, have no idea, have never been able to run a user written ISPF Macro in browse.
Back to top
View user's profile Send private message
Adrian Stern

New User


Joined: 13 Feb 2008
Posts: 12
Location: Sweden

PostPosted: Mon Sep 08, 2008 4:54 pm
Reply with quote

Don't understand any of this but I can help Dick.

Address "ISPEXEC" "VGET (zScreenI,zScreenC)"
gives you a copy of the screen(zscreeni) and the position of the cursor (zscreenc). This means you can pick words off the screen from under the cursor etc.

If you add your command name to the command table it will be callable by name even in browse and thus appear to be a macro.

You can't change anything on the screen, but you can go from browse to view perhaps...

Adrian
Contact me for more info
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 FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top