Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: How to get the name of the dataset (PS or PDS) which is used
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: 8593
Location: Back in jolly old England

PostPosted: Thu Aug 28, 2008 2:47 pm    Post subject:
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    Post subject: Reply to: How to get the name of the dataset (PS or PDS) whi
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: 8593
Location: Back in jolly old England

PostPosted: Thu Aug 28, 2008 2:58 pm    Post subject:
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    Post subject: How to get the name of the dataset (PDS or PS) which is used
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: 8593
Location: Back in jolly old England

PostPosted: Thu Aug 28, 2008 3:13 pm    Post subject:
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    Post subject: How to get the name of the dataset (PS or PDS) which is used
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: 6967
Location: porcelain throne

PostPosted: Thu Aug 28, 2008 3:34 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us