IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Allocating HFS File using DYNALLOC (SVC 99)


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
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
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
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.

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

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Apr 01, 2009 3:23 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 0
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top