Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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
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: 8593
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: 8593
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

Global Moderator


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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
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: 2025
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 FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm
No new posts FTOPEN TEMP is failing due to dataset... mbenaud TSO/ISPF 7 Thu Jul 28, 2016 4:28 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us