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
 

 

EXEC DLI - how to code GHNP call equivalent?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
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    Post subject: EXEC DLI - how to code GHNP call equivalent?
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    Post subject:
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    Post subject:
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    Post subject:
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    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 JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts CA Workload Automation event code help vinu78 CA Products 10 Wed Mar 01, 2017 10:05 am
No new posts MAX-RC 88 and Return code 606 in DFH0... lind sh CICS 2 Tue Jan 24, 2017 1:23 pm
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 2 Thu Jan 12, 2017 12:02 pm


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