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
 

 

AI status code for a READ NEXT on a GSAM file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
View previous topic :: :: View next topic  
Author Message
harsha puthraya

New User


Joined: 29 Oct 2008
Posts: 8
Location: Bangalore

PostPosted: Wed May 27, 2009 2:27 pm    Post subject: AI status code for a READ NEXT on a GSAM file
Reply with quote

Hi,
I am getting AI status code for a READ NEXT on a GSAM file.

SYSOUT display is as follows
===================
FUNC:GN DBD :BGS0054
STATUS:AI SEGMENT:GSAM
SEGMENT AREA 60064181 5337 3720837 004841634004ÁÊ

Checked in the IBM site and error reads,
AI-There has been a data management OPEN error.

My call for GSAM is

CALL "CBLTDLI" USING GN-FUNC
BGS0054-PCB
CGSLTCRD-INPUT-RECORDS
GSAM-RSA.

01 GSAM-RSA.
05 GSAM-BLOCK-ID PIC 9(8) COMP.
05 GSAM-VOL-SEQ-NO PIC 9(4) COMP.
05 GSAM-RECORD-DISP PIC 9(4) COMP.

I have used PROCOPT as "GS" for the GSAM READ.

Can you please help me out with this error?

Regards
Harsha
Back to top
View user's profile Send private message

bipinpeter

Active User


Joined: 18 Jun 2007
Posts: 208
Location: Cochin/Kerala/India

PostPosted: Wed May 27, 2009 4:38 pm    Post subject:
Reply with quote

Please Check the DD name is properly mentioned in the JCL or not..
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed May 27, 2009 4:41 pm    Post subject: Re: AI status code for a READ NEXT on a GSAM file
Reply with quote

harsha puthraya wrote:
Checked in the IBM site and error reads,
AI-There has been a data management OPEN error.
There is a bit more about this status code in Manuals:
Quote:
Programmer Response: These kinds of problems often require the help of a system programmer or system administrator. But before you go to one of these specialists, some things you can do are:

o Check the DD statements. Make sure that the ddname is the same as the name specified on the DATASET statement of the DBD. The segment name area in the DB PCB (call level), or in the DIB (command level) has the ddname of the data set that could not be opened.

o Check the PSB and make sure that the appropriate processing options have been specified for each of the DB PCBs that your program uses.
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 -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
This topic is locked: you cannot edit posts or make replies. session stuck in TPX with status ACL amitc23 CA Products 1 Tue Dec 13, 2016 12:53 pm


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