how to display GDG version name using rexx



IBM's Command List programming language & Restructured Extended Executor

how to display GDG version name using rexx

Postby deva_048 » Fri Jun 19, 2015 11:18 am

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       
deva_048
 
Posts: 72
Joined: Thu Feb 02, 2012 9:28 pm
Has thanked: 1 time
Been thanked: 0 time

Re: how to display GDG version name using rexx

Postby enrico-sorichetti » Fri Jun 19, 2015 2:02 pm

cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3003
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: how to display GDG version name using rexx

Postby deva_048 » Fri Jun 19, 2015 3:05 pm

Thank you so much !!! It worked fine .. How to write this output into a dataset by using JCL ?
deva_048
 
Posts: 72
Joined: Thu Feb 02, 2012 9:28 pm
Has thanked: 1 time
Been thanked: 0 time

Re: how to display GDG version name using rexx

Postby NicC » Fri Jun 19, 2015 5:59 pm

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: how to display GDG version name using rexx

Postby Pedro » Fri Jun 19, 2015 6:50 pm

X = LISTDSI(DSN FILE)

Use FILE when you specify a DDname as the first parameter.
Pedro Vera
User avatar
Pedro
 
Posts: 686
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 53 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post