View previous topic :: View next topic
|
Author |
Message |
abhilashe
New User
Joined: 23 Feb 2006 Posts: 7 Location: India
|
|
|
|
I need to allocate a new HFS file in OMVS, from a assembler mdoule. Could anyone help me with example in a sample code.
I am able to allocate HFS Pipe using the value of dataset type text unit (DALDSNT) as X'20' but if put this value as X'10' or remove the TU completely I am getting S99ERROR as '970C' and S99ERSN = '445D'. I miss SMS reason code 445D in the IBM documentation.
Could anyone please help me out? |
|
Back to top |
|
|
parsesource
New User
Joined: 06 Feb 2006 Posts: 97
|
|
|
|
abhilashe wrote: |
I need to allocate a new HFS file in OMVS, from a assembler mdoule. Could anyone help me with example in a sample code.
I am able to allocate HFS Pipe using the value of dataset type text unit (DALDSNT) as X'20' but if put this value as X'10' or remove the TU completely I am getting S99ERROR as '970C' and S99ERSN = '445D'. I miss SMS reason code 445D in the IBM documentation.
Could anyone please help me out? |
i´m not an expert on this, but maybe using bpxwdyn is a better idea.
www.ibmmainframes.com/about35091.html |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
From the Authorized Assembler Services Guide:
Quote: |
IGD messages accompany the SMS reason code depending on the allocation message processing options in the S99EOPTS field of the request block. (See “Processing Options (S99EOPTS)” on page 26-12.) The SMS reason code also corresponds to an IGD system message that further describes the error. For example, if the reason code is X'4379' (decimal 17273), the IGD message that contains the decimal equivalent, IGD17273I, describes the error. If the IGD messages are suppressed, the following procedure could be followed to get further details:
For error code X'970C', SMS creates entries in the logrec data set. Because there are no problem IDs associated with SMS reason codes, locate |
and the MAC says
Quote: |
IGD17501I
ATTEMPT TO OPEN AN OPENMVS FILE FAILED, RETURN CODE=rc, REASON CODE=rs, FILENAME=filename
Explanation:
A call was made to BPX10PN during the allocation of a HFS file. This call failed. The return code and reason code are documented in the appropriate topic in z/OS UNIX System Services Messages and Codes.
System action:
The SMS VTOC Data Set Services request fails.
Application Programmer Response:
Determine the cause of the error as indicated by the return and reason code and resubmit the job after correcting the error. Correct the problem as indicated and resubmit the job.
Source:
DFSMSdfp
Detecting Module:
IGDVTPSX
Routing Code:
2
Descriptor Code:
4 |
So your best bet is to find the IGD17501I message and interpret the codes based from the message. If you're still having trouble, post the IGD17501I message. |
|
Back to top |
|
|
abhilashe
New User
Joined: 23 Feb 2006 Posts: 7 Location: India
|
|
|
|
Thanks for your input Robert and parsesource. I could manage to correct my errors in calling DYNALLOC. The length of one of the input Text Unit was incorrect and hence I got the mentioned error.
I learnt one more point that text unit DALDSNT could be used only for Pipe files in OMVS. I had to leave this TU out from DYNALLOC call to create a normal HFS file. |
|
Back to top |
|
|
|