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: 57
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

Senior Member


Joined: 14 Mar 2007
Posts: 10524
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: 57
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

Senior Member


Joined: 14 Mar 2007
Posts: 10524
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: 57
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 Encoding using rexx pkmurali CLIST & REXX 2 Sat Sep 08, 2018 1:05 am
No new posts IBM's FTP not working with TLS encryp... sathyajes TSO/ISPF 10 Tue Aug 21, 2018 1:37 pm
No new posts Can we call QMF proc from REXX ? batu544 CLIST & REXX 6 Fri Aug 03, 2018 11:03 am
No new posts REXX CGI - Hello World vasanthz All Other Mainframe Topics 4 Fri Jul 13, 2018 3:53 am
No new posts SDSF - SJ command not working properly mistah kurtz IBM Tools 5 Tue Jun 26, 2018 2:33 pm

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