Retrieve z/OS Dataset Allocation Parameters

J

Jerry Orr

I am attempting to retrieve various MVS dataset allocation parameters
(lrecl, block size, etc) from a C/C++ program. The C/C++ Run-time
Library Reference states that the function svc99() can be used for
this purpose; however, it gives no specifics or examples on how to do
this. It only shows how to use svc99() to dynamically allocate and
free datasets, not retrieve their information. I've searched
extensively around the web for examples (or other solutions), but I
haven't been able to find any.

Does anyone have any examples of how to do retrieve these allocation
parameters? If there is a better way than using svc99(), I am of
course open to that as well.
 
V

Victor Bazarov

Jerry said:
I am attempting to retrieve various MVS dataset allocation parameters
(lrecl, block size, etc) from a C/C++ program. The C/C++ Run-time
Library Reference states that the function svc99()

What [sub]clause of the C Standard document describes that function?
I couldn't find it. What "reference" are you talking about? Is that
a programming manual for your OS? Then you better ask about it in
a newsgroup that deals with your OS. Try 'comp.os. said:
can be used for
this purpose; however, it gives no specifics or examples on how to do
this. It only shows how to use svc99() to dynamically allocate and
free datasets, not retrieve their information. I've searched
extensively around the web for examples (or other solutions), but I
haven't been able to find any.

Does anyone have any examples of how to do retrieve these allocation
parameters? If there is a better way than using svc99(), I am of
course open to that as well.

Since there is no 'svc99' in the C++ or C Standard Library, nothing can
be said about it here, in comp.lang.c++. You have to ask elsewhere.
The newsgroup for your OS is your best bet, I think.

V
 
A

adix

Jerry said:
I am attempting to retrieve various MVS dataset allocation parameters
(lrecl, block size, etc) from a C/C++ program. The C/C++ Run-time
Library Reference states that the function svc99() can be used for
this purpose; however, it gives no specifics or examples on how to do
this. It only shows how to use svc99() to dynamically allocate and
free datasets, not retrieve their information. I've searched
extensively around the web for examples (or other solutions), but I
haven't been able to find any.

Does anyone have any examples of how to do retrieve these allocation
parameters? If there is a better way than using svc99(), I am of
course open to that as well.

This is z/os specific and as such is off topic for this group.


<OT>
Have a look at the fldata function in the C/C++ runtime library
reference. It should do what you want.

Future z/os C/C++ specific questions should be directed to
ibm.software.vacpp.os390.compiler
</OT>
 
J

Jerry Orr

As the subject implies, I am dealing with an IBM z/OS system. I
appreciate the suggestion to post is 'comp.os.<yourOS>.programmer',
but I am unable to find any appropriate newsgroups out there (z/OS,
OS/390, or MVS would all make sense). I've looked around for more
specific newsgroups, but this is the best I could find.

Though many of the posters in this newsgroup will likely have no
experience with C++ for z/OS, my hope is that there are z/OS C++
programmers out there reading this forum.

For clarification, the reference manual I was referring to was "z/OS
V1R4.0 C/C++ Run-Time Library Reference", section 3.788. It is
available online at:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/EDCLB131/CCONTENTS?DT=20030305133847

Thanks for your reply... hopefully someone out there can help me!

Jerry


Victor Bazarov said:
Jerry said:
I am attempting to retrieve various MVS dataset allocation parameters
(lrecl, block size, etc) from a C/C++ program. The C/C++ Run-time
Library Reference states that the function svc99()

What [sub]clause of the C Standard document describes that function?
I couldn't find it. What "reference" are you talking about? Is that
a programming manual for your OS? Then you better ask about it in
a newsgroup that deals with your OS. Try 'comp.os. said:
can be used for
this purpose; however, it gives no specifics or examples on how to do
this. It only shows how to use svc99() to dynamically allocate and
free datasets, not retrieve their information. I've searched
extensively around the web for examples (or other solutions), but I
haven't been able to find any.

Does anyone have any examples of how to do retrieve these allocation
parameters? If there is a better way than using svc99(), I am of
course open to that as well.

Since there is no 'svc99' in the C++ or C Standard Library, nothing can
be said about it here, in comp.lang.c++. You have to ask elsewhere.
The newsgroup for your OS is your best bet, I think.

V
 
J

Jerry Orr

Well, at any rate, your off-topic answer to my off-topic question was
exactly what I was looking for. And though showing gratitude for an
off-topic answer is inherently off-topic in itself, I thank you
anyway.

Seriously, though, thanks!

~Jerry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,176
Messages
2,570,950
Members
47,503
Latest member
supremedee

Latest Threads

Top