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: 50
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: 10408
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: 50
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: 10408
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: 50
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
This topic is locked: you cannot edit posts or make replies. how to get Job information from IOF u... rsshanmugam CLIST & REXX 13 Mon Feb 05, 2018 4:22 pm
No new posts attchmvs from rexx subroutine that re... harisukumaran CLIST & REXX 1 Fri Jan 19, 2018 5:29 am
No new posts Can we create REXX ouput in an Excel ... upendrasri CLIST & REXX 3 Wed Jan 17, 2018 8:19 pm
No new posts Need to obtain VTOC information via R... djeffbland CLIST & REXX 10 Thu Jan 11, 2018 4:13 am
No new posts REXX contest sergeyken CLIST & REXX 2 Tue Jan 09, 2018 1:55 am

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