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
 

 

Reason for AC status code

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

New User


Joined: 31 Dec 2010
Posts: 4
Location: Pune

PostPosted: Wed Oct 19, 2011 11:36 am    Post subject:
Reply with quote

I have just used a GU with a qualified segment which performed well for the first account.. But for the second account its showing AC.. Can some one say the reason??
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Wed Oct 19, 2011 12:22 pm    Post subject: Reply to: Can anyone explain IMS DB STATUS CODE-AC means wha
Reply with quote

when You have a question it is good manners to start a new topic..
not to piggy-tail on a 5 years old one

here is the link to the IMS bookshelf
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/DFSSH0H1

a bit of manual reading never hurt anybody icon_cool.gif
Back to top
View user's profile Send private message
vankarthik

New User


Joined: 31 Dec 2010
Posts: 4
Location: Pune

PostPosted: Wed Oct 19, 2011 12:35 pm    Post subject:
Reply with quote

sorry enrico..
Back to top
View user's profile Send private message
vankarthik

New User


Joined: 31 Dec 2010
Posts: 4
Location: Pune

PostPosted: Wed Oct 19, 2011 12:38 pm    Post subject:
Reply with quote

Since my question was related to that same topic.. i just posted there...

Thanks,

Karthik
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 Oct 19, 2011 6:54 pm    Post subject:
Reply with quote

AC Status code is pretty straight forward, have you checked the possibilty of any of these:
Quote:
- 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.
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Wed Oct 19, 2011 8:49 pm    Post subject:
Reply with quote

Hmmm...

Are you telling me the same call worked once, but not the second time? As in, the SSA worked, but you change the value of the key in the SSA, and it didn't work?

If I had to guess, I'd say you accidentally changed the SSA by more than the key value.

Here's a great trick to help with these types of problems: turn on DLI Trace.

Find the DFSVSAMP DD statement in your job, and add this line to the bottom:
Code:

DLITRACE COMP

Then add a new DD like this:
Code:

//DFSTROUT DD SYSOUT=*


Don't run a lot of data through it, because the output can be very large.

This will show you all of the IMS calls and how they are being formatted. It's helped me find a LOT of stupid mistakes that I just couldn't see when looking at the code.

If we were betting a cup of coffee, I'd say your first call is UNQUALIFIED, but then somewhere in the program, it's QUALIFYING it so that IMS sees the badly formed SSA. So you'll see something like:
Code:

GU SEGNAME

On the first call, then something like:
Code:

GU SEGNAME*---(KEYNAME EQxxxxxxx)

for the second call, and you'll be able to see that the SEGMENT, KEYNAME, or KEY VALUE is not correct.
Back to top
View user's profile Send private message
vankarthik

New User


Joined: 31 Dec 2010
Posts: 4
Location: Pune

PostPosted: Thu Oct 20, 2011 10:03 am    Post subject:
Reply with quote

Thanks Anuj & Ed.

I found the mistake. Actually the qualified ssa had a path call. I just commented it out and defined a qualified ssa again with different key name with path call (since it was used at another place). And it ran fine. icon_surprised.gif

Thanks,
Karthik
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Thu Oct 20, 2011 9:32 pm    Post subject:
Reply with quote

Dang, now I owe you a coffee! If I'm ever in Pune, I'll look you up.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Fri Oct 21, 2011 5:14 pm    Post subject:
Reply with quote

Ed Goodman wrote:
Dang, now I owe you a coffee! If I'm ever in Pune, I'll look you up.
If you do so, come to Mumbai too - just 4 hrs, by road, away from Pune. icon_smile.gif
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 PL/I code tuning/Performance improvement Virendra Shambharkar PL/I & Assembler 4 Mon Dec 05, 2016 11:57 am
No new posts What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am
No new posts IDEAL - Code Retrieval yugendran CA Products 0 Fri Nov 25, 2016 3:27 pm
This topic is locked: you cannot edit posts or make replies. Need to code a Rexx PGM sundaram.naveen CLIST & REXX 18 Thu Oct 06, 2016 6:45 pm
No new posts Need Help in understanding what is th... mainakdalal PL/I & Assembler 9 Mon Oct 03, 2016 8:03 pm


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