View previous topic :: View next topic
|
Author |
Message |
dvpkumar217
New User
Joined: 01 Sep 2007 Posts: 11 Location: Baltimore, MD US
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
What about multiple occurences of the string in different members / datasets ? |
|
Back to top |
|
|
dvpkumar217
New User
Joined: 01 Sep 2007 Posts: 11 Location: Baltimore, MD US
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
To keep it easy, you will have to determine which dataset name is allocated and used irrespective of the user. |
|
Back to top |
|
|
dvpkumar217
New User
Joined: 01 Sep 2007 Posts: 11 Location: Baltimore, MD US
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Pre allocate it in the routine
"ALLOF FI(SEARCH) DA('"userid".what.ever') ..........................." |
|
Back to top |
|
|
dvpkumar217
New User
Joined: 01 Sep 2007 Posts: 11 Location: Baltimore, MD US
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
Adrian Stern
New User
Joined: 13 Feb 2008 Posts: 12 Location: Sweden
|
|
|
|
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 |
|
|
|