Re: REXX : how to determine the member name of a DD card

2010-09-10 Thread CUNY Yann
With the listdsi, i only have the pdsname in the sysdsname variable ... The member name is not indicated. -Message d'origine- De : IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] De la part de Itschak Mugzach Envoyé : jeudi 9 septembre 2010 18:02 À : IBM-MAIN@bama.ua.edu

Re: REXX : how to determine the member name of a DD card

2010-09-10 Thread Hardee, Charles H
Yann, If you use the REXX code supplied by Jon L. Veilleux below, you will be able to get the dsn and member name. At the point in his code where the IF is triggered, sysoutline.x will contain the information you seek. Simply parse sysoutline.x into 2 variables, something like parse var

Re: REXX : how to determine the member name of a DD card

2010-09-10 Thread Peter Nuttall
In the second part of Itschak's reply he tells you how to extract the member name from the returned sysdsname ... CUNY Yann yc...@externe.generali.fr Sent by: IBM Mainframe Discussion List IBM-MAIN@bama.ua.edu 10/09/2010 04:05 PM Please respond to IBM Mainframe Discussion List

Re: REXX : how to determine the member name of a DD card

2010-09-10 Thread Hardee, Charles H
No, LISTDSI will not work, at least not for me. Here's my REXX (based on Jon's earlier REXX): /* rexx */ Z=OUTTRAP(SYSOUTLINE.,'*',NOCONCAT) ADDRESS TSO INDEX=' ' LISTALC STATUS

Re: REXX : how to determine the member name of a DD card

2010-09-10 Thread Grinsell, Don
Try this: Parse sysoutline.x pdsname ( memname ) Say memname -- Donald Grinsell State of Montana 406-444-2983 dgrins...@mt.gov He who returns from a journey is not the same as he who left. -- Chinese Proverb -Original Message- From: IBM Mainframe Discussion List

Re: REXX : how to determine the member name of a DD card

2010-09-10 Thread Grinsell, Don
That should have been: Parse var sysoutline.x pdsname ( memname ) Regards. -- Donald Grinsell State of Montana 406-444-2983 dgrins...@mt.gov The limits of my language are the limits of my world. -- Ludwig Wittgenstein -Original Message- From: IBM Mainframe Discussion List

Re: REXX : how to determine the member name of a DD card

2010-09-10 Thread Veilleux, Jon L
You are right. My example was just showing how to get the full filename. I (mistakenly) thought that anyone with a little bit of REXX knowledge would be able to parse out the membername from the full name. Jon L. Veilleux veilleu...@aetna.com (860) 636-9179 -Original Message-

Re: REXX : how to determine the member name of a DD card

2010-09-09 Thread Dana Mitchell
On Wed, 8 Sep 2010 10:58:14 +0200, CUNY Yann yc...@externe.generali.fr wrote: //IN DD DSN=P3CUN.YANN.JCL(TEST14),DISP=SHR I need, in my rexx, to retrieve the member name of the DD CARD IN. With the LISTDSI, I just have the pds name. Any idea ? You can use OUTTRAP function to trap

Re: REXX : how to determine the member name of a DD card

2010-09-09 Thread Veilleux, Jon L
Can you use ISRDDN and parse the output? Jon L. Veilleux veilleu...@aetna.com (860) 636-9179 -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Dana Mitchell Sent: Thursday, September 09, 2010 9:13 AM To: IBM-MAIN@bama.ua.edu Subject:

Re: REXX : how to determine the member name of a DD card

2010-09-09 Thread Veilleux, Jon L
Here is some sample REXX code that will list the dataset allocated to ddname DD1 using Listalc st. /* rexx */ Z=OUTTRAP(SYSOUTLINE.,'*',NOCONCAT) ADDRESS TSO INDEX=' '

Re: REXX : how to determine the member name of a DD card

2010-09-09 Thread CUNY Yann
Works fine ! thank you ... -Message d'origine- De : IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] De la part de Veilleux, Jon L Envoyé : jeudi 9 septembre 2010 16:04 À : IBM-MAIN@bama.ua.edu Objet : Re: REXX : how to determine the member name of a DD card Here is some

Re: REXX : how to determine the member name of a DD card

2010-09-09 Thread Itschak Mugzach
I would try LISTDSI('xxx file). It might return the dsnname into SYSDSNAME which you can investigate using member=(word(translate(sysdsname,' ',()'),2) ITschak On Thu, Sep 9, 2010 at 5:35 PM, CUNY Yann yc...@externe.generali.fr wrote: Works fine ! thank you ... -Message d'origine-

REXX : how to determine the member name of a DD card

2010-09-08 Thread CUNY Yann
Hi all ! I have this JCL : //STEP11 EXEC PGM=IKJEFT01,REGION=0M //SYSTSIN DD * PROFILE NOPREF TEST15 /*

Re: REXX : how to determine the member name of a DD card

2010-09-08 Thread karolf Gazeta.pl
Hi! You can go from TCB to TIOT and then from TIOT to JFCB. In TIOT there is a table of all DD statements of the job, In each table entry there is pointer to approp. JFCB. In JFCB there are entries( one on more) for all DSN-s on this DD statement (1 where concatenation occurs), possibly. with