IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to get the dataset name


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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: 2358
Location: Israel

PostPosted: Wed Jul 30, 2008 12:07 pm
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: 8797
Location: Welsh Wales

PostPosted: Wed Jul 30, 2008 12:42 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Wed Jul 30, 2008 1:24 pm
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Jul 30, 2008 1:46 pm
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
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: 8797
Location: Welsh Wales

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

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Jul 30, 2008 2:01 pm
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

Moderator Emeritus


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

PostPosted: Wed Jul 30, 2008 8:27 pm
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
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

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Thu Aug 07, 2008 10:15 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top