Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
how to get the dataset name

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
Author Message
Naresh Dasari

New User


Joined: 16 Oct 2007
Posts: 7
Location: Chennai

PostPosted: Wed Jul 30, 2008 11:56 am    Post subject: how to get the dataset name
Reply with quote

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
View user's profile Send private message
References
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2039
Location: Israel

PostPosted: Wed Jul 30, 2008 12:07 pm    Post subject:
Reply with quote

Try PARSE SOURCE.

O.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3744
Location: Brussels once more ...

PostPosted: Wed Jul 30, 2008 12:42 pm    Post subject:
Reply with quote

Does it not display the requested information at the top of your edit panel ?
Back to top
View user's profile Send private message
Naresh Dasari

New User


Joined: 16 Oct 2007
Posts: 7
Location: Chennai

PostPosted: Wed Jul 30, 2008 12:59 pm    Post subject:
Reply with quote

yes it is displaying. But i want it to be displayed thru the program.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3744
Location: Brussels once more ...

PostPosted: Wed Jul 30, 2008 1:24 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Naresh Dasari

New User


Joined: 16 Oct 2007
Posts: 7
Location: Chennai

PostPosted: Wed Jul 30, 2008 1:39 pm    Post subject:
Reply with quote

anything is ok. Main criteria is to display the dataset/member info.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 3279
Location: italy

PostPosted: Wed Jul 30, 2008 1:46 pm    Post subject: Reply to: how to get the dataset name
Reply with quote

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
View user's profile Send private message
Naresh Dasari

New User


Joined: 16 Oct 2007
Posts: 7
Location: Chennai

PostPosted: Wed Jul 30, 2008 1:56 pm    Post subject:
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3744
Location: Brussels once more ...

PostPosted: Wed Jul 30, 2008 1:58 pm    Post subject:
Reply with quote

Then PARSE SOURCE will do it
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 3279
Location: italy

PostPosted: Wed Jul 30, 2008 2:01 pm    Post subject: Reply to: how to get the dataset name
Reply with quote

Quote:
I guess i have provided enough information. :-)
_________________


and You already got more than enough answers icon_cool.gif
Back to top
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 9211
Location: 221 B Baker St

PostPosted: Wed Jul 30, 2008 8:27 pm    Post subject:
Reply with quote

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 icon_wink.gif
Back to top
View user's profile Send private message
arsekar_purva

New User


Joined: 06 May 2008
Posts: 2
Location: pune

PostPosted: Thu Aug 07, 2008 4:45 pm    Post subject: Reply to: how to get the dataset name
Reply with quote

You can use ISREDIT macro
address ispexec
"isredit(dsnname)=dataset"
"isredit(memname)=member"
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 635
Location: work

PostPosted: Thu Aug 07, 2008 10:15 pm    Post subject: Reply to: how to get the dataset name
Reply with quote

When the poster was asked for clarification, he said it was during run time, not during editing of the program.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1