Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Allocating HFS File using DYNALLOC (SVC 99)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
abhilashe

New User


Joined: 23 Feb 2006
Posts: 7
Location: India

PostPosted: Fri Mar 27, 2009 6:11 pm    Post subject: Allocating HFS File using DYNALLOC (SVC 99)
Reply with quote

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
View user's profile Send private message

parsesource

New User


Joined: 06 Feb 2006
Posts: 97

PostPosted: Wed Apr 01, 2009 2:32 am    Post subject: Re: Allocating HFS File using DYNALLOC (SVC 99)
Reply with quote

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.

http://www.ibmmainframes.com/about35091.html
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7997
Location: Bellevue, IA

PostPosted: Wed Apr 01, 2009 3:23 am    Post subject:
Reply with quote

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
View user's profile Send private message
abhilashe

New User


Joined: 23 Feb 2006
Posts: 7
Location: India

PostPosted: Fri Apr 03, 2009 3:56 pm    Post subject: Re: Allocating HFS File using DYNALLOC (SVC 99)
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us