MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

IMS abend AC

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> IMS
View previous topic :: View next topic  
Author Message
JoanIke
Beginner


Joined: 22 Aug 2006
Posts: 2
Topics: 1
Location: NJ

PostPosted: Tue Aug 22, 2006 8:24 am    Post subject: IMS abend AC Reply with quote

My batch pgm is returning AC on a GN statement.

It does a GU on the root segment and does several GN on other child segments.
A change was made recently to re-establish parentage on the root again and do several GN's on a child segment. (loops several times)
Then the program does a GN on another child segment (this is where it failed in production with AC).
My question is - do I have to establish parentage on the root segment again???
Back to top
View user's profile Send private message
Sreejith
Intermediate


Joined: 02 Dec 2002
Posts: 155
Topics: 25
Location: N.Ireland

PostPosted: Tue Aug 22, 2006 8:38 am    Post subject: Reply with quote

An AC means you have an in correct SSA or the segment you are trying to access is not defined in PSB. Since you didn't touch the PSB I guess it's the SSA. Do a Display of your SSA and see whether it got the stuff you wanted. I have seen cases where the SSA get corrupted by a DLI call if the IO-AREA is not big enough and the SSA is defined immediatley after IO_AREA.


Sreejith
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Aug 22, 2006 8:39 am    Post subject: Reply with quote

JoanIke,

Use P command code with a GNP call.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
JoanIke
Beginner


Joined: 22 Aug 2006
Posts: 2
Topics: 1
Location: NJ

PostPosted: Tue Aug 22, 2006 9:04 am    Post subject: Reply with quote

So the last GN call should be changed to GNP in order to retain the original parentage? It will not get lost from the previous loop?
Back to top
View user's profile Send private message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Tue Aug 22, 2006 9:36 am    Post subject: Reply with quote

JoanIke,

Some Info on Status code AC:
Code:

     |------------------------------------------------------------------------|
     | Table 35. Database Calls                                               |
     |-------|-------------|------|-------------------------------------------|
     | PCB   |             |      |                                           |
     | Status|   Database  | Cate-|                                           |
     | Code  |    Calls    | gory | Description                               |
     |-------|-------------|------|-------------------------------------------|
     | AC    | GU, GHU     |   4  | Hierarchic error in SSAs.                 |
     |       | GN, GHN     |      |                                           |
     |       | GNP, GHNP   |      |                                           |
     |       | DLET, REPL  |      |                                           |
     |       | ISRT (LOAD) |      |                                           |
     |       | ISRT (ADD)  |      |                                           |
     |-------|-------------|------|-------------------------------------------|
     
     |------------------------------------------------------------------------|
     | Table 37. System Service Calls                                         |
     |-------|-------------|------|-------------------------------------------|
     | PCB   |    System   |      |                                           |
     | Status|   Service   | Cate-|                                           |
     | Code  |    Calls    | gory | Description                               |
     |-------|-------------|------|-------------------------------------------|
     | AC    | STAT(1)     |   4  | Hierarchic error in SSAs.                 |
     |-------|-------------|------|-------------------------------------------|
     
AC

     Explanation:

     For call-level programs:

     An error is in an SSA for a DLET, Get, ISRT, or REPL call for one of these
     reasons:

     *   DL/I could not find a segment in the DB PCB specified in the call that
         has the segment name given in the SSA.

     *   The segment name is in the DB PCB, but the SSA specifying that segment
         name is not in its correct hierarchic sequence.

     *   The call specifies two SSAs for the same hierarchic level.


     IMS also returns this status code when a STAT  (3)  call has an invalid
     statistics function. After this status code is returned, your position in
     the database is unchanged.

     For command-level programs:

     An error is in one of the WHERE or SEGMENT options on a Get or ISRT
     command for one of these reasons:

     *   DL/I could not find a segment in the DB PCB specified in the segment
         name given in the SEGMENT option.

     *   The segment name is in the DB PCB, but the qualification for the
         command does not specify it in its correct hierarchic sequence.

     *   The command specifies two SEGMENT options for the same hierarchic
         level.


     Programmer Response:  Correct the segment name in the SSA or SEGMENT
     option or in the statistics function of the STAT  (3) call.

      (3) STAT is a Product-sensitive programming interface.

_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> IMS All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group