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

Error to invoke MPP program through BMP process


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

New User


Joined: 19 Aug 2024
Posts: 3
Location: India

PostPosted: Mon Aug 19, 2024 7:05 pm
Reply with quote

Hello..!

I have requirement to invoke the existing MPP IMS Online program through a BMP batch process, where reading the transaction details from a input file and write it to IMS Queue per transaction data layout, this will trigger the existing IMS online screen program and get the response for IMS-DB enquiry per I/O layout for the BMP program.

Here I followed below steps in a batch program via BMP process-

Code:


1. Setup transaction data for Online program
CALL PLITDLI (ARG3, CHNG, ALT_PTR, 'TRANCODE ');

2. Insert transaction data to the IMS Queue
CALL PLITDLI (ARG3,ISRT,ALT_PTR,IOAREA);

3. Read the response in batch program
CALL PLITDLI (ARG3,GU,IO_PTR,IOAREA);



My program is failing at 3rd step when reading the response from IMS Queue with Status Code = 'AD'

Note: I am using a existing PSB which is doing I/O operation for ALT_PTR with PCB option 'MODIFY = 'Y'

Can anyone please suggest if I am missing anything or what could be reason for the error.

Thanks.
Back to top
View user's profile Send private message
Ravi Ranjan

New User


Joined: 19 Aug 2024
Posts: 3
Location: India

PostPosted: Mon Aug 19, 2024 11:10 pm
Reply with quote

Ravi Ranjan wrote:
Hello..!

I have requirement to invoke the existing MPP IMS Online program through a BMP batch process, where reading the transaction details from a input file and write it to IMS Queue per transaction data layout, this will trigger the existing IMS online screen program and get the response for IMS-DB enquiry per I/O layout for the BMP program.

Here I followed below steps in a batch program via BMP process-

Code:


1. Setup transaction data for Online program
CALL PLITDLI (ARG3, CHNG, ALT_PTR, 'TRANCODE ');

2. Insert transaction data to the IMS Queue
CALL PLITDLI (ARG3,ISRT,ALT_PTR,IOAREA);

3. Read the response in batch program
CALL PLITDLI (ARG3,GU,IO_PTR,IOAREA);



My program is failing at 3rd step when reading the response from IMS Queue with Status Code = 'AD'

Note: I am using a existing PSB which is doing I/O operation for ALT_PTR with PCB option 'MODIFY = 'Y'

Can anyone please suggest if I am missing anything or what could be reason for the error.

Also, how we know if my MPP program is triggered after ISRT function put message to Queue successfully ( STATUS CODE = ' ') ?

Thanks.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2594
Location: Silicon Valley

PostPosted: Thu Aug 22, 2024 3:06 am
Reply with quote

re: My program is failing at 3rd step

It would help if you could provide some kind of error symptoms.

Also, can you confirm that the first two steps completed with RC=0?
Back to top
View user's profile Send private message
Ravi Ranjan

New User


Joined: 19 Aug 2024
Posts: 3
Location: India

PostPosted: Thu Aug 22, 2024 4:55 pm
Reply with quote

Hi Pedro,

Thanks for the reply. Now the BMP batch process is completing successful i.e the job completed with MAXCC = 0.

But the online transaction program(which should start with transaction trigger) is not getting started, means through my BMP batch program I am inserting the transaction data to IMS Queue through CHG, ISRT and reading IOAREA through GU DLI call, but as a result getting same message as input not the expected output enquiry data.

I put some display statement in Online program to check if program initiated once transaction TRAN1 is added to queue. But no display statement found in online IMSLOG.

Also, check the /for dis tran TRAN1 and seeing the ENCQT count is increasing on every run. That means my transaction is writing to IMS Queue but the associate online transaction program is not getting started and when reading this IOARA through GU call reading the same Input transaction data.

The Online IMS log showing the log of BMP process as started and stopped.

Can I get any suggestion on - why the online program is not getting initiated though the Transaction is getting inserted to IMS Queue.
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 IEW2315E 1369 Link error All Other Mainframe Topics 3
No new posts Help on IMS -API URL migrating from P... IMS DB/DC 1
No new posts JES datasets IO Error ABENDS & Debugging 3
No new posts PKZIP error ZPFM121E and ZPCE009E JCL & VSAM 6
No new posts OpenPGP Decryption job getting LRECL ... IBM Tools 7
Search our Forums:

Back to Top