View previous topic :: View next topic
|
Author |
Message |
Naresh Dasari
New User
Joined: 16 Oct 2007 Posts: 9 Location: Chennai
|
|
|
|
Hi,
Can anyone help me, how to find the name of PDS or Member of PDS that we are working on currently
For eg: if iam writing a program in rexx in the dataset temp.prog.rexx(p1). How can i get that info so that i want to display the name of the dataset iam working in like " You r wrking in so and so dataset/member" |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Try PARSE SOURCE.
O. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Does it not display the requested information at the top of your edit panel ? |
|
Back to top |
|
|
Naresh Dasari
New User
Joined: 16 Oct 2007 Posts: 9 Location: Chennai
|
|
|
|
yes it is displaying. But i want it to be displayed thru the program. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Naresh Dasari wrote: |
yes it is displaying. But i want it to be displayed thru the program. |
Could you please explain what you want to do.
Do you want the REXX code to display the dataset / member info when it runs. or do you want a function to display what is already displayed at the top of your screen. |
|
Back to top |
|
|
Naresh Dasari
New User
Joined: 16 Oct 2007 Posts: 9 Location: Chennai
|
|
|
|
anything is ok. Main criteria is to display the dataset/member info. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
anything is ok. Main criteria is to display the dataset/member info.
|
at what time... if You care to explain
when You are editing a rexx You are just doing that and the library/member info is available at the top of the edit panel
at run time the PARSE SOURCE will tell You the member name and IIRC the dname where the member came from
it' s up to You to locate in the dd concatenation the right library and dsplay it accordingly |
|
Back to top |
|
|
Naresh Dasari
New User
Joined: 16 Oct 2007 Posts: 9 Location: Chennai
|
|
|
|
If i run my rexx program. It has to display the Dataset/Member info where my source code actually exist. For example my rexx program P1 is in the dataset TEMP.PROG.REXX. After running the program P1 it has to display like 'Program P1 is located in TEMP.PROG.REXX dataset'. I guess i have provided enough information. :-) |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Then PARSE SOURCE will do it |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
I guess i have provided enough information. :-)
_________________ |
and You already got more than enough answers |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Just a thought/caution. . .
Quote: |
I guess i have provided enough information. |
The person asking the question cannot make this determination. It is the people answering the question who decide when enough informaton has been provided for the question to be answered |
|
Back to top |
|
|
arsekar_purva
New User
Joined: 06 May 2008 Posts: 2 Location: pune
|
|
|
|
You can use ISREDIT macro
address ispexec
"isredit(dsnname)=dataset"
"isredit(memname)=member" |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
When the poster was asked for clarification, he said it was during run time, not during editing of the program. |
|
Back to top |
|
|
|