Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
REXX LISTDSI () SMSINFO is not working

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
upendrasri

New User


Joined: 28 Sep 2017
Posts: 49
Location: India

PostPosted: Fri Nov 17, 2017 11:33 am    Post subject: REXX LISTDSI () SMSINFO is not working
Reply with quote

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
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10374
Location: italy

PostPosted: Fri Nov 17, 2017 11:52 am    Post subject: Reply to: REXX LISTDSI () SMSINFO is not working
Reply with quote

if You had cared to research the manual (*)
https://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
??? icon_evil.gif
Back to top
View user's profile Send private message
upendrasri

New User


Joined: 28 Sep 2017
Posts: 49
Location: India

PostPosted: Fri Nov 17, 2017 12:01 pm    Post subject:
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10374
Location: italy

PostPosted: Fri Nov 17, 2017 12:34 pm    Post subject:
Reply with quote

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
View user's profile Send private message
upendrasri

New User


Joined: 28 Sep 2017
Posts: 49
Location: India

PostPosted: Fri Nov 17, 2017 12:43 pm    Post subject:
Reply with quote

Hi Enrico,

The below code working fine.

DSINFO= LISTDSI("'T99UXS.TEST'" "SMSINFO" )

Thanks alot for your help.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Looping REXX - unable to interrupt RAVISANKAR07 CLIST & REXX 3 Wed Dec 06, 2017 1:08 pm
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
This topic is locked: you cannot edit posts or make replies. Rexx to Grab ISMF Information. upendrasri All Other Mainframe Topics 16 Sun Nov 26, 2017 12:35 am
No new posts Rexx to send an email without SMTP Se... upendrasri All Other Mainframe Topics 12 Sun Nov 19, 2017 7:59 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us