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

IMS Call GN in PLI program


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
DEEPTHY

New User


Joined: 03 May 2007
Posts: 1
Location: CHENNAI

PostPosted: Thu Jun 07, 2007 9:21 pm
Reply with quote

Hi,
I am using a IMS call GN in my PLI program

DO WHILE (STATUS_FRTXT ^= 'GE');
CALL PLITDLI (3,
FUNC_GN,
OMFRTXDB_PTR,
OMFRTXDB_DB);
END;

I am getting a error message of U4036, while running the program. Please any one can tell me is it the problem with my segment pointer, and how can i solve it.

Thanks
Deepthy
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jun 07, 2007 11:34 pm
Reply with quote

Hello and welcome to the forums,

Your topic was entered in the Job Vacancies area, so i moved it to IMS.

Please advise if this is not what you wanted.
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Wed Jun 13, 2007 2:52 pm
Reply with quote

Don't know how your parameters and psb are defined. Are they:



    count
    function
    pcb
    (ssa is omitted while you want a complete hierarchical sequential get)
    io-area?
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Wed Jun 13, 2007 3:02 pm
Reply with quote

furthermore.........check your spy. In this link read the trap-part.
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Thu Jun 14, 2007 3:31 am
Reply with quote

Where is your check for "GB" (end of database)? If you use a GN without an SSA, you will read every segment in the database. I do not know PL1,
but if you want to count ONLY certain segments, use a GN for only that segment. If you are reading thru the database and do not check for "GB", you will keep going and going and going - just like the energizer bunny. icon_lol.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 Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top