Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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
View previous topic :: :: View next topic  
Author Message
Naresh Dasari

New User


Joined: 16 Oct 2007
Posts: 9
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

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
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: 8679
Location: Back in jolly old England

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: 9
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: 8679
Location: Back in jolly old England

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: 9
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

Senior Member


Joined: 14 Mar 2007
Posts: 10478
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: 9
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: 8679
Location: Back in jolly old England

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

Senior Member


Joined: 14 Mar 2007
Posts: 10478
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

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

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: 2110
Location: Silicon Valley

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
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 Question about dataset sequence numbe... harisukumaran JCL & VSAM 23 Tue May 29, 2018 9:31 am
No new posts Temp dataset unusual behavior sheersh JCL & VSAM 5 Tue May 08, 2018 9:52 pm
No new posts How could i share my personal dataset... James Halley TSO/ISPF 1 Fri Mar 23, 2018 9:41 pm
This topic is locked: you cannot edit posts or make replies. How could i share my personal dataset... samenxia163 TSO/ISPF 1 Fri Mar 09, 2018 12:18 pm
No new posts Where to get sample for processing RM... vice_versa PL/I & Assembler 2 Tue Jan 16, 2018 2:03 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us