Page 1 of 1

how to display GDG version name using rexx

PostPosted: Fri Jun 19, 2015 11:18 am
by deva_048
I used the below code it is showing invalid dataset name.

DSLIST - Data Sets Matching RADTSO.POSERR.N01                       Row 1 of 2
Command ===>                                                  Scroll ===> CSR 
                                                                               
Command - Enter "/" to select action                  Message           Volume
-------------------------------------------------------------------------------
         RADTSO.POSERR.N01                                              ??????
         RADTSO.POSERR.N01.G0001V00                                     TEST42


REXX CODE:

/*REXX*/                         
SAY "SEE BELOW GEN"             
DSN= "'RADTSO.POSERR.N01(0)'"   
X = LISTDSI(DSN FILE)           
SAY SYSDSNAME                   
EXIT 0       



OUTPUT:

SEE BELOW GEN                                 
INVALID DATA SET NAME, 'RADTSO.POSERR.N01(0)'
                                             
READY                                         
END       

Re: how to display GDG version name using rexx

PostPosted: Fri Jun 19, 2015 2:02 pm
by enrico-sorichetti

Re: how to display GDG version name using rexx

PostPosted: Fri Jun 19, 2015 3:05 pm
by deva_048
Thank you so much !!! It worked fine .. How to write this output into a dataset by using JCL ?

Re: how to display GDG version name using rexx

PostPosted: Fri Jun 19, 2015 5:59 pm
by NicC
I am not quite sure what you are asking because you can have your rexx program put the returned dataset name into a dataset by use of EXECIO.

Re: how to display GDG version name using rexx

PostPosted: Fri Jun 19, 2015 6:50 pm
by Pedro
X = LISTDSI(DSN FILE)

Use FILE when you specify a DDname as the first parameter.