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 

Solution for AC status code

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


Joined: 22 Mar 2005
Posts: 22
Topics: 16

PostPosted: Wed Apr 20, 2005 8:25 pm    Post subject: Solution for AC status code Reply with quote

Hai,

I am getting status code of AC when i issue a DLI call to IMS database & i know the reasons for getting AC as

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.



I am sure that my call is correct according to my analysis but i doubt i am getting AC of the statistics function of the STAT (3) call.

Can any one help me what does statistics function of the STAT (3) call mean & how do i solve / make changes in the call.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Apr 20, 2005 8:46 pm    Post subject: Reply with quote

coolguy2005,

Check your PSB definitions ,PROCOPT and also your SSA's . You will get an AC error code if the PROCOPT is defined properly.

Hope this helps...

Cheers

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


Joined: 22 Mar 2005
Posts: 22
Topics: 16

PostPosted: Thu Apr 21, 2005 12:06 am    Post subject: Can u please emphasize more Reply with quote

Kolusu,

Thanks for an early response.Actually i am issuing GU calls & i am sure in the PSB defination ,PROCOPT = A is there & my SSA is also correct .Is there any other reason i can get AC status Code.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Apr 21, 2005 5:46 am    Post subject: Reply with quote

Quote:

Actually i am issuing GU calls & i am sure in the PSB defination ,PROCOPT = A is there & my SSA is also correct .Is there any other reason i can get AC status Code.

coolguy2005,

If you are doing GU calls then your PROCOPT should be GOT or GOTP(reading childs)

Hope this helps...

Cheers

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


Joined: 27 May 2003
Posts: 22
Topics: 2
Location: India

PostPosted: Fri Apr 29, 2005 3:28 pm    Post subject: Reply with quote

coolguy2005,

Can you give more details about your PSB and SSA.
_________________
Thanks
-Ram
Back to top
View user's profile Send private message
coolguy2005
Beginner


Joined: 22 Mar 2005
Posts: 22
Topics: 16

PostPosted: Sun May 01, 2005 9:49 pm    Post subject: solution for AC status code Reply with quote

Thanks Pulikonda,

I got the correct solution .I was making GHNP call without command codes & i was expecting the parent data also in the IOAREA ,but i was wrong.I am making use of a PSB which does not has PROCOPT of P ,so i had to use GU on root & then GHNP but my SSA was correct

Coolguy2005
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