View previous topic :: View next topic
|
Author |
Message |
venugopal.dondla
New User
Joined: 16 May 2011 Posts: 6 Location: india
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Quote: |
A value is returned only if DIRECTORY is specified on the LISTDSI statement. |
Did you do this? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
works for me
if You had read the docs You would have found the glitch in your way of doing things |
|
Back to top |
|
|
venugopal.dondla
New User
Joined: 16 May 2011 Posts: 6 Location: india
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
venugopal.dondla
New User
Joined: 16 May 2011 Posts: 6 Location: india
|
|
|
|
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 |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
I wonder what keyword You used for the search
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 |
|
Back to top |
|
|
venugopal.dondla
New User
Joined: 16 May 2011 Posts: 6 Location: india
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
Back to top |
|
|
|