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

EXEC DLI - how to code GHNP call equivalent?


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

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Wed Dec 17, 2008 12:33 pm
Reply with quote

Hi,

My system uses EXEC DLI for all IMS call instead of conventional CALL CBLTDLI.

It seems there is no direct GHNP call when using EXEC DLI.

You can see the comparsion between EXEC DLI and CALL DLI cmds here
(See TABLE 6)
http://publib.boulder.ibm.com/infocenter/cicsts/v3r1/index.jsp?topic=/com.ibm.cics.ts31.doc/dfht4/toc.htm

i tried the following:
Code:

EXEC DLI GNP                       
     USING                         
     PCB     (DB-PCB-NO)           
     SEGMENT (X)                 
     SETPARENT                     
     WHERE   (keyX=WS-A) 
     SEGMENT (B)             
     INTO    (segB-REC)         
END-EXEC       
                     

This is followed a REPL call
Code:

EXEC DLI REPL                 
     USING                   
     PCB     (DB-PCB-NO)     
     SEGMENT (B)       
     FROM    (segB-REC)   
END-EXEC   
 


This code works fine for one time. but when i loop it UNTIL GE/GB for segB it abends (for GNP call), it abends with GP status code.

Can some one help me with this logic?
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


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

PostPosted: Wed Dec 17, 2008 6:05 pm
Reply with quote

Why are you setting parentage?
Back to top
View user's profile Send private message
pingte

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Thu Dec 18, 2008 12:25 pm
Reply with quote

Before the GNP loop.. I have a GHU call...

The sequence of calls is like this...

1. GHU
2. REPL
3. LOOP -> GNP + REPL till GE /GB for seg B
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 Dec 18, 2008 5:06 pm
Reply with quote

You always need to HOLD a segment before any replace or delete. So, you should be using GHNP or GHN.
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 JCL EXEC PARM data in C Java & MQSeries 2
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts Error while running web tool kit REXX... CLIST & REXX 5
Search our Forums:

Back to Top