Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Rexx - SYSADIRBLK, SYSMEMBERS is not returning values

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

New User


Joined: 16 May 2011
Posts: 6
Location: india

PostPosted: Mon May 16, 2011 5:41 pm    Post subject: Rexx - SYSADIRBLK, SYSMEMBERS is not returning values
Reply with quote

Hi,

I am using the rexx LIST DSI functions SYSDSNAME, SYSLRECL, SYSALLOC etc. These funcions are working fine.
But when i used the functions SYSADIRBLK, SYSMEMBERS it is not giving any value. Please help.



Thanks and Regards,
venugopal
Back to top
View user's profile Send private message

superk

Moderator Team Head


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

PostPosted: Mon May 16, 2011 5:52 pm    Post subject: Reply to: Rexx - SYSADIRBLK, SYSMEMBERS is not returning val
Reply with quote

Quote:
A value is returned only if DIRECTORY is specified on the LISTDSI statement.


Did you do this?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Mon May 16, 2011 6:01 pm    Post subject: Reply to: Rexx - SYSADIRBLK, SYSMEMBERS is not returning val
Reply with quote

works for me icon_biggrin.gif

if You had read the docs You would have found the glitch in your way of doing things icon_cool.gif
Back to top
View user's profile Send private message
venugopal.dondla

New User


Joined: 16 May 2011
Posts: 6
Location: india

PostPosted: Tue May 17, 2011 12:56 pm    Post subject: Reply to: Rexx - SYSADIRBLK, SYSMEMBERS is not returning val
Reply with quote

Hi,
Sorry for the late response, i left for the day yesterday and back today just now.

Code is as below.

DSINFO=LISTDSI(B)
Where (B) is the name of the dataset.

If dsinfo == 0 then
do
dsname = sysdsname
lrecl = syslrecl
uspace = SYSPRIMARY

noofmem= SYSMEMBERS
ublocks = SYSUDIRBLK
end;
Here we are getting values for dsname, lrecl, uspace but we are not getting the values for noofmem and ublcoks variable.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Tue May 17, 2011 1:01 pm    Post subject: Reply to: Rexx - SYSADIRBLK, SYSMEMBERS is not returning val
Reply with quote

You did not read the replies given to You
nor You cared to do a bit of homework Yourself AKA reading the manuals icon_evil.gif

starting from here for the whole TSO shebang
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/IKJ4BK90
proceeding here for the rexx reference
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IKJ4A370/CCONTENTS?SHELF=IKJ4BK90&DN=SA22-7790-07&DT=20060626210253
landing eventually her for the LISTDSI info
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IKJ4A370/4.4.2?SHELF=IKJ4BK90&DT=20060626210253#SPTTSOLDSI
Back to top
View user's profile Send private message
venugopal.dondla

New User


Joined: 16 May 2011
Posts: 6
Location: india

PostPosted: Wed May 18, 2011 2:14 pm    Post subject: Reply to: Rexx - SYSADIRBLK, SYSMEMBERS is not returning val
Reply with quote

Hi,
The third Link provided by you gave me the solution. I searched in the Interet, IBM PUBLIB and other alternatives for 3 days, but i could not find the correct syntax.

Thanks a lot for your timely help
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Wed May 18, 2011 2:19 pm    Post subject:
Reply with quote

Getting an answer in 1 hour, not seeing/understanding it and then searching for 3 days? You will not get far in IT, that i can say for sure.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Wed May 18, 2011 7:29 pm    Post subject: Reply to: Rexx - SYSADIRBLK, SYSMEMBERS is not returning val
Reply with quote

I wonder what keyword You used for the search icon_eek.gif

I just checked and googling with REXX LISTDSI the first hit returned was

http://publib.boulder.ibm.com/infocenter/zos/v1r9/index.jsp?topic=/com.ibm.zos.r9.ikja300/ldsi.htm

which contains, albeit in a slightly different format the info provided by the third link!

You were not supposed to click directly on the third link, but to start from the first one in order to understand the logic to be used when searching manuals icon_cool.gif
Back to top
View user's profile Send private message
venugopal.dondla

New User


Joined: 16 May 2011
Posts: 6
Location: india

PostPosted: Thu May 19, 2011 10:23 am    Post subject: Reply to: Rexx - SYSADIRBLK, SYSMEMBERS is not returning val
Reply with quote

As the functions SYSDSNAME, SYSDSORG etc were working, i expected the syntax for SYSMEMBERS and SYSADIRBLK would be same as them and did not think of putting DIRECTORY next to the dataset name.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Thu May 19, 2011 11:18 am    Post subject: Reply to: Rexx - SYSADIRBLK, SYSMEMBERS is not returning val
Reply with quote

Quote:
i expected the syntax for SYSMEMBERS and SYSADIRBLK would be same as them and did not think of putting DIRECTORY next to the dataset name.


You should have learned by now to check Your expectations against/with the manual icon_cool.gif
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 What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts Overlaying one set of charater values... Kevin Lindsley SYNCSORT 7 Sat Nov 05, 2016 3:21 am
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
No new posts Low values Results from VARCHAR FORMAT balaji81_k DB2 10 Thu Oct 20, 2016 1:18 am
No new posts Replace repeated JCL with looping REXX prino CLIST & REXX 3 Thu Oct 13, 2016 5:30 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us