I think the only way to do what you want is via the UNIX readdir type
functionality. The only thing I can find for reading a directory using non-UNIX
BPAM support are the BLDL and FIND macros. Conspicuously missing is DESERV
support.
Also, here
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dgt2d490/3.8.7.4
it says:
DESERV provides interfaces to access the directories of PDS and PDSE data sets.
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dgt2d570/2.2.20
says the same thing in very similar word.
But here:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dgt2r190/8.0
it is explicitly stated:
Table 73. DESERV reason codes
Reason
Code Meaning
1127 (X'0467') UNIX(r) directories not supported.
--
John McKown
Systems Engineer IV
IT
Administrative Services Group
HealthMarkets(r)
9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone *
[email protected] * www.HealthMarkets.com
Confidentiality Notice: This e-mail message may contain confidential or
proprietary information. If you are not the intended recipient, please contact
the sender by reply e-mail and destroy all copies of the original message.
HealthMarkets(r) is the brand name for products underwritten and issued by the
insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance
Company(r), Mid-West National Life Insurance Company of TennesseeSM and The
MEGA Life and Health Insurance Company.SM
> -----Original Message-----
> From: IBM Mainframe Discussion List
> [mailto:[email protected]] On Behalf Of Charles Mills
> Sent: Thursday, April 19, 2012 7:58 PM
> To: [email protected]
> Subject: DESERV for HFS Folders?
>
> I need to be able to process for input all members of a PDS,
> PDSE, or HFS
> folder. I need to process them individually - the order does
> not matter -
> and not as one big concatenated file.
>
>
>
> DESERV GET_ALL will get me the names if it's a PDS or PDSE
> (and I can take
> it from there) but what about a USS (gasp!) folder? Does
> DESERV see it as a
> PDS? The documentation doesn't say it does but a fellow can hope.
>
>
>
> The main program is in C. Have I missed a library routine
> that will do this?
>
>
>
> What about the old-fashioned PDS technique - emulated for
> PDSE - of reading
> the directory of the PDS with BPAM and parsing the 256-byte directory
> blocks? Does BPAM simulate that for an HFS folder like it
> simulates it for a
> PDSE?
>
>
>
> Any other good solutions to this problem?
>
>
>
> Thanks,
>
>
>
> Charles
>
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>
>
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN