IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Getting the dataset name from a DD name - REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kalais

New User


Joined: 18 Apr 2006
Posts: 22

PostPosted: Tue Jun 20, 2006 6:06 pm
Reply with quote

Hi,


How can i get a dataset name from a DD name in REXX program.

The DD name is defined in a PROC which executes the REXX program.

What REXX command/function can be used for this purpose?
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Jun 20, 2006 6:22 pm
Reply with quote

LISTDSI.

I've given you this same answer in previous posts.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Wed Jun 21, 2006 7:07 pm
Reply with quote

Code:
DDNAME = 'myddname'
Ret = LISTDSI(DDNAME' FILE')

If Ret <> 0 Then Do
    SAY 'REASON....:'SYSREASON
    SAY 'MSGLVL1...:'SYSMSGLVL1
    SAY 'MSGLVL2...:'SYSMSGLVL2     
End; Else Do
    SAY 'DSNAME....:'SYSDSNAME     
    SAY 'VOLUME....:'SYSVOLUME     
    SAY 'UNIT......:'SYSUNIT       
    SAY 'DSORG.....:'SYSDSORG       
    SAY 'RECFM.....:'SYSRECFM       
    SAY 'LRECL.....:'SYSLRECL       
    SAY 'BLKSIZE...:'SYSBLKSIZE     
    SAY 'KEYLEN....:'SYSKEYLEN     
    SAY 'ALLOC.....:'SYSALLOC       
    SAY 'USED......:'SYSUSED       
    SAY 'USEDPAGES.:'SYSUSEDPAGES   
    SAY 'PRIMARY...:'SYSPRIMARY     
    SAY 'SECONDS...:'SYSSECONDS     
    SAY 'UNITS.....:'SYSUNITS       
    SAY 'EXTENTS...:'SYSEXTENTS     
    SAY 'CREATE....:'SYSCREATE     
    SAY 'REFDATE...:'SYSREFDATE     
    SAY 'EXDATE....:'SYSEXDATE
    SAY 'PASSWORD..:'SYSPASSWORD
    SAY 'RACFA.....:'SYSRACFA   
    SAY 'UPDATED...:'SYSUPDATED
    SAY 'TRKSCYL...:'SYSTRKSCYL
    SAY 'BLKSTRK...:'SYSBLKSTRK
    SAY 'ADIRBLK...:'SYSADIRBLK
    SAY 'UDIRBLK...:'SYSUDIRBLK
    SAY 'MEMBERS...:'SYSMEMBERS
    SAY 'DSSMS.....:'SYSDSSMS   
End
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Run rexx with JCL Job CLIST & REXX 1
No new posts Run rexx in batch job CLIST & REXX 7
No new posts Does anyone know rexx for VSE CLIST & REXX 3
No new posts TSO ALLOC In REXX Needs Improvement JCL & VSAM 3
No new posts REXX/CMS How to place command console... CLIST & REXX 4
Search our Forums:

Back to Top