|
View previous topic :: View next topic
|
| Author |
Message |
krishna_mf
New User

Joined: 31 Jan 2007 Posts: 56 Location: banglore
|
|
|
|
Hi,
i am getting the a USER COMPLETION CODE=0260
while i ma running the below MPP program. can any one help me
I am using the following PSB
PCB TYPE=TP,ALTRESP=YES,MODIFY=YES
PSBGEN LANG=PLI,PSBNAME=SN0200
END
Application program
SN0200: PROC($LTM,$PCB1) OPTIONS (MAIN NOEXECOPS);
DCL ADDR BUILTIN;
DCL PLITDLI ENTRY;
DCL $PCB1 PTR;
DCL $LTM PTR;
PUT SKIP LIST('BEFORE CCCCC');
DCL 1 PCBTERM BASED($LTM),
2 QLTNAM CHAR(8),
2 QLTRES CHAR(2),
2 QLTSTC CHAR(2),
2 QLTDAT,
3 QLTJDT FIXED DEC (7),
3 QLTTIM FIXED DEC (7),
3 QLTSEQ FIXED BIN (31),
3 QLTFMT CHAR (8);
DCL SIOAREA CHAR(8) INIT('KRIS') ;
DCL $SIOAREA PTR;
$SIOAREA=ADDR(SIOAREA);
CALL PLITDLI(3,'CHNG',$PCB1,'SN020');
CALL PLITDLI(3,'ISRT',$PCB1,$SIOAREA);
END SN0200; |
|
| Back to top |
|
 |
Bitneuker
CICS Moderator

Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
|
|
I have to investigate the 0260 but if you execute a DLI-call in an MPP you should start the application with a GU on the message queue. Did your first put skip appear now? And where is your alternate-io-pcb? The io-pcb is generated automatically for an MPP and is not defined in the psb, just the db-pcb's; modify=yes in the tp-psb means also an alternate-io-pcb is needed; you'll have to code it in the pcb-list of your mainproc. You used my example but extended it with a DLI-call: program-to-program switch :roll:but I told to start with the simple thing and afterwards extend it.
| Code: |
TPQAVER: PROC (IOTRM,ALTERN) OPTIONS(MAIN);
|
| Code: |
| PCB TYPE=TP,MODIFY=YES |
|
|
| Back to top |
|
 |
krishna_mf
New User

Joined: 31 Jan 2007 Posts: 56 Location: banglore
|
|
|
|
thanks Bitneuker
i want to just test a simple IMS MPP program
can you please tell what call PLITDLI call can i do in the program |
|
| Back to top |
|
 |
Bitneuker
CICS Moderator

Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
|
|
The error code explains the functionscode (CHNG) is corrupt. Replace the count (3) by a fixed bin (31) field. Follow the second link in my signature and at LookAt search for 0206. In fact use this option whenever you've got an error. Then your message look like a mess. An IMS message has a certain structure. Below you find the code of one of our applications performing a program-to-program swich via a CHNG-call. The only fields you fill are length, transaction code to swich to and the data you want to transfer to the other application.
| Code: |
DCL 1 IOAREA CHAR(1924);
DCL 1 MID_E0 UNAL BASED(ADDR(IOAREA)),
3 LL BIN FIXED(31),
3 ZZ BIT(16),
3 TC CHAR(09),
3 DATA CHAR(1725);
MID_E0 = '';
LL = 294;
TC = 'NPBE22';
DCL ALT_TRX CHAR(8);
ALT_TRX = 'NPBE22';
PARMCT = 3;
CALL PLITDLI (PARMCT,'CHNG',PALTERN,ALT_TRX);
CALL PLITDLI (PARMCT,'ISRT',PALTERN,IOAREA);
|
I notice in you code that that application is the same as the initial one. Do you want to make a change-call to the initial program itself Guess not The CHNG-call transfers control to another MPP.
Your simple MPP, like any other, should:
read the message queue using a GU;
process the message received;
read optional additional messages using a GN;
insert the message to the screen using ISRT with a MODNAME so IMS knows which screen to build.
But I definitely advise you to first read some manuals in order to comprehend the methodoloy
If you really are seeking for a sample I am willing to post one. |
|
| Back to top |
|
 |
krishna_mf
New User

Joined: 31 Jan 2007 Posts: 56 Location: banglore
|
|
|
|
hi,
when i am running the below MPP program .
For GU call i am getting return code AH .
for INSRT call i am getting QH.
can you please help me
$LTM is the logical terminal PCB
DCL 1 PCBTERM BASED($LTM),
2 QLTNAM CHAR(8),
2 QLTRES CHAR(2),
2 QLTSTC CHAR(2),
2 QLTDAT,
3 QLTJDT FIXED DEC (7),
3 QLTTIM FIXED DEC (7),
3 QLTSEQ FIXED BIN (31),
3 QLTFMT CHAR (8);
DCL 1 IOAREA,
3 LL BIN FIXED(31),
3 ZZ CHAR(2) INIT('00'X),
3 TC CHAR(09) ;
CALL PLITDLI(N3,GUC,$LTM,SIOAREA);
PUT SKIP LIST('STATUS CODE FOR GU',$LTM->QLTSTC);
CALL PLITDLI (N3,ISRTC,$LTM,IOAREA);
PUT SKIP LIST('STATUS CODE FOR LTM ISRT',$LTM->QLTSTC); |
|
| Back to top |
|
 |
Bitneuker
CICS Moderator

Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
|
|
| Please don't post in different topics about the same item. I answered you there. Investigate your calls. |
|
| Back to top |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|