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

Reason for AC status code


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Oct 19, 2011 12:22 pm
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
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
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
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

Superior Member


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

PostPosted: Wed Oct 19, 2011 6:54 pm
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
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
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
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

Superior Member


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

PostPosted: Fri Oct 21, 2011 5:14 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts Job completes in JES, but the status ... IBM Tools 1
No new posts Reorg abended with REASON=X'00E40347' DB2 2
No new posts REASON 00D70014 in load utility DB2 6
Search our Forums:

Back to Top