× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: CPF2479 on sndpgmmsg
  • From: "Danny Rodius" <danny.rodius@xxxxxxxxx>
  • Date: Mon, 28 Aug 2017 18:54:17 +0200
  • Ironport-phdr: 9a23:hoyhtRd7CLm5BcrAtW4u9xeNlGMj4u6mDksu8pMizoh2WeGdxcW4YR7h7PlgxGXEQZ/co6odzbGH4+a4ASQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9GiTe5Yr5+Ngm6oRnMvcQKnIVuLbo8xAHUqXVSYeRWwm1oJVOXnxni48q74YBu/SdNtf8/7sBMSar1cbg2QrxeFzQmLns65Nb3uhnZTAuA/WUTX2MLmRdVGQfF7RX6XpDssivms+d2xSeXMdHqQb0yRD+v6bpgRh31hycdLzM38H/ZisJyg6xGrhyvpBNwzJLbbo+SKPpzZb/dcNEVRWZdQMpdSzJND4WhZIUPFeoBOuNYopHzq1UAtxS+Aw+sBePywTFUgX/5wKw60/k6EQ3IwQctGM8Bv27SrNXzNKYeS/q1zK7VwjXCcvNWwizw6JPLchEhp/GDQ65wfdDKxkYxDg7IiEibp4LiPzOQzOsNsm6b4vJ6WuKxhG4rsR1+oj+qxss0j4nJh58aykre+iV/z4Y6O8e0R1J8Yd6hCJdfrSSaOJF3Q8MlRWFkojo1yroDuZKjZicKzZUmxxjFZ/ybdIiF5A/oWuWJITpgh39pZaiziwi9/EWv0OHwSMa53VZQoiZYkNTBtnYA3AHJ5MedUPty5EKh1C6K1wDU9+5LP1g5lbHeK5492r4wkYcTsVjbEi/2hkr2iKiWe10q9Oey7eTnZLXnqIWCOoNsiwH+NLohmtCnDOk7LwQCRXaX9Ouz2bH540H0T7VHgucrnqTbsJ3WPcEbqbS4Aw9R3IYj8RG/DzK+3dsFh3YHKlRFeRKdg4jzPFHBPfH4Deqkg1m3izdrxPDHPrv/DZXRNHTMi6nuca5n60FA0Aoz0cxf55VMB7EbOPLzVUD8uMDEAhMgNwy52OPnCNRg2YMEQ22PBKCZP73IvVCU4eIvJrrEWYkOpTyoK+Q5/6ypyns4gkMGO6yo0YEebn+1WP9hJgKcaHvoh94HVmMLpRY/SuLtz0eaXmILPzO2DJ47s3t0MrqJRZ/ZQY+3ibmE3SG0VppQLnxGBxitO1Kgds2wG943L37KeodolDBMVIOsUY4sziXv+0Wyn6B/IbaMomgcnZfi2MJ84eLe0xo18GonId6a1jTHY2hymHJAfTg63b1k6wQpxl6F17k+mftUFMFIz+hKQwE3KdjWwropWJjJRgvdc4LRGx6dSdK8DGRpQw==
  • List-archive: <http://archive.midrange.com/rpg400-l/>
  • List-help: <mailto:rpg400-l-request@midrange.com?subject=help>
  • List-id: "RPG programming on the IBM i \(AS/400 and iSeries\)" <rpg400-l.midrange.com>
  • List-post: <mailto:rpg400-l@midrange.com>
  • List-subscribe: <http://lists.midrange.com/mailman/listinfo/rpg400-l>, <mailto:rpg400-l-request@midrange.com?subject=subscribe>
  • List-unsubscribe: <http://lists.midrange.com/mailman/options/rpg400-l>, <mailto:rpg400-l-request@midrange.com?subject=unsubscribe>

Hi Stu,

Thanks for looking in to.

Will give this a try tomorrow.

Best regards,
Danny
-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Stuart
Rowe
Sent: maandag 28 augustus 2017 17:32
To: RPG programming on the IBM i (AS/400 and iSeries)
<rpg400-l@xxxxxxxxxxxx>
Subject: Re: CPF2479 on sndpgmmsg

Yeah DSPMSGD, I get to see the text, great. We need to see the message data
from the message you are getting.

Anyway, I compiled your code to see the message data. If you had looked at
the message data, you would notice that it is 4 bytes of binary followed by
'*PGMBDY'. Since the message data is *CHAR *VARY, it should be 2 bytes
binary followed by '*PGMBDY'. The extra 2 binary bytes are the varying
length from RPG that you should not be passing due to the errant prototype
for the QMHSNDPM api.

Sometimes a message ID is not enough. You need to look at the message data.

Stu




<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_cam
paign=sig-email&utm_content=webmail>
Virus-free.
www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_cam
paign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Mon, Aug 28, 2017 at 8:29 AM, Danny Rodius <danny.rodius@xxxxxxxxx>
wrote:

Herby the description found via dspmsgd:


CPF2479
QCPFMSG
QSYS
Call stack entry not found.

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of
Stuart Rowe
Sent: maandag 28 augustus 2017 14:45
To: RPG programming on the IBM i (AS/400 and iSeries)
<rpg400-l@xxxxxxxxxxxx>
Subject: Re: CPF2479 on sndpgmmsg

The actual error description might help us.

<http://www.avg.com/email-signature?utm_medium=email&;
utm_source=link&utm_cam
paign=sig-email&utm_content=webmail>
Virus-free.
www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&;
utm_source=link&utm_cam
paign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Mon, Aug 28, 2017 at 4:42 AM, Danny Rodius <danny.rodius@xxxxxxxxx>
wrote:

Hi all,



I'm lost. Writing some command validation program and i'm blocked in
sending a diagnostic message and escape message.

Don't find why I'm getting this error.

Program was compiled with actgrp *caller. ( see comments)



Anyone an idea what I'm doing wrong here or forgot?



**free

// Compile options:

// - CrtRpgMod Module( STL1030VP )

// DbgView( *LIST )

//

// - CrtPgm Pgm( STL1030VP )

// Module( STL1030VP )

// ActGrp( *Caller )



ctl-opt debug(*yes);

ctl-opt option(*srcstmt : *nodebugio : *nounref);



dcl-ds ERRC0100;

AeBytesPrv int(10) inz(%size(ERRC0100));

AeBytesAvl int(10) inz(0);

AeException char(7);

Aereserved char(1);

AeExceptData char(240);

End-ds;



dcl-pr sndProgramMessage ExtPgm( 'QMHSNDPM' );

SpMsgId char(7) Const;

SpMsgFq char(20) Const;

SpMsgDta char(128) Const;

SpMsgDtaLen int(10) Const;

SpMsgTyp char(10) Const;

SpCalStkE varchar(10) Const;

SpCalStkCtr int(10) Const;

SpMsgKey char(4);

ErrorCode likeds(ERRC0100)
options(*VarSize);

SpCalStkEntLen int(10) Const Options( *NoPass );

SpCalStkEntQual char(20) Const Options( *NoPass );

SpDspWait int(10) Const Options( *NoPass );

SpCalStkEntTyp char(20) Const Options( *NoPass );

SpCcsId int(10) Const Options( *NoPass );

end-pr;



dcl-c F_OK const(0);

dcl-c R_OK const(4);

dcl-c W_OK const(2);

dcl-c X_OK const(1);



dcl-pr access int(10) ExtProc('access');

Path pointer value options(*string);

amode int(10) value;

end-pr;





dcl-pi *n;

PxIfsObjPath varchar(5000) const;

PxIfsObjSize packed(15:0);

end-pi;



dcl-s MsgDta varchar(512);

dcl-s MsgKey char(4);



If access( PxIfsObjPath: F_OK ) = -1;

MsgDta = '0000' + 'IFS object ' + PxIfsObjPath + ' not found.';

sndProgramMessage( 'CPD00006'

: 'QCPFMSG *LIBL'

: MsgDta

: %Len( MsgDta )

: '*DIAG'

: '*PGMBDY'

: 1

: MsgKey

: ERRC0100

);



MsgDta = '';

sndProgramMessage( 'CPF0002'

: 'QCPFMSG *LIBL'

: MsgDta

: %Len( MsgDta )

: '*ESC'

: '*PGMBDY'

: 1

: MsgKey

: ERRC0100

);



EndIf;



*InLr = *On;



return;



Best regards;

Danny

--
This is the RPG programming on the IBM i (AS/400 and iSeries)
(RPG400-L) mailing list To post a message email:
RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list
options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at http://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our
affiliate
link: http://amzn.to/2dEadiD

--
This is the RPG programming on the IBM i (AS/400 and iSeries)
(RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link:
http://amzn.to/2dEadiD

--
This is the RPG programming on the IBM i (AS/400 and iSeries)
(RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD

--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link:
http://amzn.to/2dEadiD


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.