|
I have looked through the archives and have not found any answers. I am new to Message Subfiles and trying to get a message sent to the Message Subfile from a subprocedure. CALL STACK < P_IPM100RG JASON IPM100RG JASON 0000000343 SHOWPRJ JASON 0000000522 < OJECTENTRY JASON 0000000596 VALIDATE JASON 0000000650 SNDPGMMSG JASON 0000010401 DDS SOURCE A R MSGSFL SFL A SFLMSGRCD(24) A MSGKEY SFLMSGKEY A PGMQ SFLPGMQ(276) A R MSGCTL SFLCTL(MSGSFL) A SFLDSP A SFLDSPCTL A SFLINZ A N99 SFLEND A SFLSIZ(0010) A SFLPAG(0001) A PGMQ SFLPGMQ(276) RPGLE SOURCE D PgmQ DS 276 D PgmQProc 1 256 inz('IPM100RG') D PgmQMod 257 266 inz('IPM100RG') D PgmQPgm 267 276 inz('IPM100RG') // FROM ProjectEntry subprocedure (PARTIAL) dow Fkey <> F3; write msgctl; RmvPgmMsg('*' : 0 : *blanks : '*ALL' : ErrorDS); if Fkey = ENTER; Validate(); endif; enddo; // FROM Validate subprocedure (PARTIAL) if error; SndPgmMsg('IPM0101' : 'IPM000MF *LIBL' : MsgData : %len(MsgData) : '*INFO' : '*' : 2 : MsgKey : ErrorDS); endif; When I send a message at this point, here are the values of the relevant variables: PGMQPROC OF PGMQ = ....5...10...15...20...25...30...35...40...45...50...55...60 1 'PROJECTENTRY ' 61 ' ' 121 ' ' 181 ' ' 241 ' ' PGMQMOD OF PGMQ = ' ' PGMQPGM OF PGMQ = ' ' The message shows in the job log but not the message subfile. Here is what is shown in the job log: Message ID . . . . . . : IPM0101 Severity . . . . . . . : 00 Date sent . . . . . . : 03/25/04 Time sent . . . . . . : 13:37:27 Message type . . . . . : Information CCSID . . . . . . . . : 65535 >From program . . . . . . . . . : IPM_MSG From library . . . . . . . . : JASON From module . . . . . . . . : IPM_MSG From procedure . . . . . . . : SNDPGMMSG From statement . . . . . . . : 10418 To program . . . . . . . . . . : IPM100RG To library . . . . . . . . . : JASON To module . . . . . . . . . : IPM100RG To procedure . . . . . . . . : PROJECTENTRY To statement . . . . . . . . : 596 Am I missing something here? Thank you, Jason Glodowski Programmer/Analyst H. O. Wolding, Inc. ------------------------------------------------------------ The information contained in this communication is confidential and may be legally privileged. It is intended solely for the use of the individual or the entity to whom it is addressed and others authorized to receive it. If you have received it by mistake, please let the sender know by e-mail reply and delete it from your system. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance of the contents of this information is strictly prohibited and may be unlawful. H.O. Wolding, Inc. is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. ------------------------------------------------------------
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.