View previous topic :: View next topic
|
Author |
Message |
upendrasri
Active User
Joined: 28 Sep 2017 Posts: 121 Location: India
|
|
|
|
Hi,
/* rexx */
DSINFO = LISTDSI(T99UXS.TEST) SMSINFO
SAY 'DATASET STORAGE CLASS :' SYSSTORCLASS
Above Rexx output
DATASET STORAGE CLASS :
***
But When I execute the belwo LISTCAT Job
//T99UXS1 JOB CLASS=P,MSGCLASS=H,NOTIFY=T99UXS
//* NOTIFY=&SYSUID
//STEP01 EXEC PGM=IDCAMS
//SYSPRINT DD DSN=T99UXS.TEST.SYSPRINT,DISP=SHR
//SYSIN DD *
LISTCAT ENTRIES(T99UXS.TEST) HISTORY
/*
Above Job output
1IDCAMS SYSTEM SERVICES TIME:
000002 0
000003 LISTCAT ENTRIES(PGSY.B.LLA.UPDATE) HISTORY
000004 0NONVSAM ------- PGSY.B.LLA.UPDATE
000005 IN-CAT --- USER.S1PG001.CATALOG
000006 HISTORY
000007 DATASET-OWNER-----(NULL) CREATION--------2016.323
000008 RELEASE----------------2 EXPIRATION------0000.000
000009 ACCOUNT-INFO-----------------------------------(NULL)
000010 SMSDATA
000011 STORAGECLASS ---STANDARD MANAGEMENTCLASS----NOMIG
000012 DATACLASS ------PDSNCOMP LBACKUP ---0000.000.0000
STORAGECLASS is STANDARD.
Any suggestions why SMSINFO in Rexx is not working? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
if You had cared to research the manual (*)
www.ibm.com/support/knowledgecenter/en/SSLTBW_2.1.0/com.ibm.zos.v2r1.ikja300/ldsi.htm
You would have found the answer Yourself.
Blaming Rexx for Your mistakes will not help to solve Your issues
(*) a plain simple google search for "REXX LISTDSI SMSINFO" would have taken You to the link I posted
NOTICE ...
before posting You should check that
the syntax is correct
the input and the results are coherent
why post the jcl for
T99UXS.TEST
and the results for
PGSY.B.LLA.UPDATE
??? |
|
Back to top |
|
|
upendrasri
Active User
Joined: 28 Sep 2017 Posts: 121 Location: India
|
|
|
|
Hi Enrico,
My apologies for wrong copy paste
why post the jcl for
T99UXS.TEST
and the results for
PGSY.B.LLA.UPDATE
But for both cases am not getting SMS Information. My rexx is not showing any syntax errors. I have gone through the manual which you have posted and successfully getting all other dataset details like below
SAY ' DATASET NAME :' SYSDSNAME
SAY ' DATASET VOLUME :' SYSVOLUME
SAY ' DATASET UNIT :' SYSUNIT
SAY 'DATASET CREATION DATE :' SYSCREATE
SAY 'DATASET REFERECE DATE :' SYSREFDATE
But am not getting SMS Information. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
You used
DSINFO = LISTDSI(T99UXS.TEST) SMSINFO
I would have written
DSINFO= LISTDSI("'T99UXS.TEST'" "SMSINFO" )
put the dataset between ' not to get burned by the tso prefix/noprefix stuff
and consider SMSINFO as a function argument
You should have got an error running the script as posted |
|
Back to top |
|
|
upendrasri
Active User
Joined: 28 Sep 2017 Posts: 121 Location: India
|
|
|
|
Hi Enrico,
The below code working fine.
DSINFO= LISTDSI("'T99UXS.TEST'" "SMSINFO" )
Thanks alot for your help. |
|
Back to top |
|
|
|