Page 1 of 1

Knowing PDS name

PostPosted: Tue Sep 29, 2015 2:57 pm
by samb01
Hell,

what is the command to know the PDS name when you are in a member ofthis PDS...


Thank's for your help.

Re: Knowing PDS name

PostPosted: Tue Sep 29, 2015 2:59 pm
by BillyBoyo
I use the command "look, with eyes, at line above command line".

However, your question is very unclear.

Re: Knowing PDS name

PostPosted: Tue Sep 29, 2015 6:48 pm
by prino
/* REXX */
"isredit macro"
"isredit (DSN) = dataset"
say dsn

Re: Knowing PDS name

PostPosted: Tue Sep 29, 2015 7:04 pm
by steve-myers
As BillyBoyo says, your request is most unclear.
  • As PRINO says, if you are editing or browsing a member on ISPF, what you want is right in front of your eyes.
  • If your are running a binary program, I know no practical way to obtain this information. I have never used the CSVINFO or CSVQUERY macros, but they do not seem to return the information you want.
  • I know of no API to retrieve this information for a Rexx EXEC.

Re: Knowing PDS name

PostPosted: Tue Sep 29, 2015 7:35 pm
by samb01
prino wrote:
/* REXX */
"isredit macro"
"isredit (DSN) = dataset"
say dsn



Hello, thank's a lot.
It is the solution.
I'm so happy to see that someone anderstand my "bad" english :D

Re: Knowing PDS name

PostPosted: Tue Sep 29, 2015 9:50 pm
by prino
samb01 wrote:
prino wrote:
/* REXX */
"isredit macro"
"isredit (DSN) = dataset"
say dsn



Hello, thank's a lot.
It is the solution.
I'm so happy to see that someone anderstand my "bad" english :D

Actually, it's not the solution, as it will fail miserably in a REXX exec that is executed by TSO EX 'mypds.exec(whatever)'

Re: Knowing PDS name

PostPosted: Wed Sep 30, 2015 1:29 am
by BillyBoyo
It's is not your English which was the problem, it was the lack of even a clue as to what you were trying to do, where you were trying to do it, or why.