IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Rexx - SYSADIRBLK, SYSMEMBERS is not returning values


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Mon May 16, 2011 5:52 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon May 16, 2011 6:01 pm
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue May 17, 2011 1:01 pm
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
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/IKJ4BK90
proceeding here for the rexx reference
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
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
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: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed May 18, 2011 2:19 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed May 18, 2011 7:29 pm
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

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu May 19, 2011 11:18 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
Search our Forums:

Back to Top