× 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 15:29:08 +0200
  • Ironport-phdr: 9a23:RONbThAm1lvKu7H+Kk4zUyQJP3N1i/DPJgcQr6AfoPdwSPX6oMbcNUDSrc9gkEXOFd2CrakV26yO6+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fdbghMhzexe69+IAmrpgjNq8cahpdvJLwswRXTuHtIfOpWxWJsJV2Nmhv3+9m98p1+/SlOovwt78FPX7n0cKQ+VrxYES8pM3sp683xtBnMVhWA630BWWgLiBVIAgzF7BbnXpfttybxq+Rw1DWGMcDwULs5Xymp4aV2Rx/ykCoJNyA38G/VhcJtgqxVox2uqABwzYDTfIGYL+Z+c6HSfd8GW2ZNQthdWipcCY28dYsPCO8BMP5Wo4fzvVQOqx2+BAmxD+3zzT9Hm3723bAh0+gvDArL2xEvEMgIsHTSrNT5Lr0SUeeow6nJ0DXDdOhb2Sz+6InIdBAuv+2MUahrfsXP0EQiER7OgFuXqYzgJTyV1+INvnCB4Op+WuKjkXIoqwZ0ojS3w8csi5TGhpgPxVDC+iV23pw5KsG/SE5+edKrCp5QuDubNotxRMMuWX1nuCE/yrEeo5G7eSkLyJI9yx7DbPyKdZWD7BH7VOuJPDt1gH1odKi9ihux60Ss1+3xW8qu3FtFqCdOj8PCuWoX1xPJ78iKUv59/kC81jmRzw3T8eREIVwslarcNp4h3qY8lpoNvkTHGS/7gEv4g7WQdkUi+umm8frqbq3npp+aKYB0lhnzPrkql8GwG+g1MAsDU3KG9em817Dv50L0TK1PjvIsk6nZtJ7aJd4cpq68GwJaz5ws6xC5DzamytgYh34HI09EeBKalIjkIErOIPP4DPe5nVusjC1nyOvYMbH5GJXCMmDDkKv9fbZ680Nc0hIzzd9Q6p5IFr0NOfbzV1T0tNzZExA5KRa7w+DoCNpjzI8RRWWPAqrKeJ7UqkKCs+IzP/HeI8gRuS3hML4g5vL0hHk2lBkWeqzu2JIWbHWxGLNiIl6FYHzihZAbCWhW5lJ7SL/WjwjIHgRrSD6qRaUz/Dg+DYOgAs/EQMixgLHJ/Q2eVpweUiBvMRfQSS+gfoOIE/Y3ZTiTL9RV03NOHey7U4B9jUnrsCf/yrZ9J+zb92sTspe1h/Zv4OiG3z078zplR/6a32CQVCs8ym8BQTknmrp4rU1g0X+Y0rl+juAeH9EFtKABaRszKZOJl78yMNv1QA+UJto=
  • 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>

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


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.