|
I wasn't clear - sorry.
What I mean is, if I have a command that uses a CL pgm
like this:
PGM PARM(&LIBRARY &FILE &SRCLIB &SRCFIL &SRCMBR)
dcl &library *char 10
dcl &file *char 10
dcl &srclib *char 10
dcl &srcfil *char 10
dcl &srcmbr *char 10
monmsg cpf0000
DLTF FILE(&LIBRARY/&FILE)
CRTPF FILE(&LIBRARY/&FILE) +
SRCFILE(&SRCLIB/&SRCFIL) SRCMBR(&SRCMBR)
endpgm
how do I send the message back to CODE that the pgm
wasn't able to execute all of the statements
successfully? (Perhaps the DLTF failed because of a
logical, authority, etc). If I don't monitor for
messages, then the server job gets a msgw but CODE is
never notified. I want the job to complete normally
but I want the message sent to CODE to atleast say
there was a problem.
Thanks,
Phil
--- haklui@ca.ibm.com wrote:
> Phil: please try this.
>
> On the Program Generator prompt, select
> 'Options->Settings...->General'.
> Then check 'Notify on completion' and select 'Action
> mode->Interactive/Batch'.
>
>
>
>
> Hak Lui
> AS/400 AD, IBM Canada Ltd.
> e-mail: haklui@ca.ibm.com
>
>
> Phil Groschwitz
> <sublime78ska@yahoo.com>@midrange.com on 01/14/2002
> 03:05:03 PM
>
> Please respond to code400-l@midrange.com
>
> Sent by: code400-l-admin@midrange.com
>
>
> To: code400-l@midrange.com
> cc:
> Subject: Re: Adding command to CODE Program
> Generator (was RE: replacing a
> PF)
>
>
> Thanks, Edmund. I got that working.
>
> I added my own command and got it to work as well,
> except for handling errors. How are the completion
> messages sent back to CODE? Is there any
> documentation or examples for this?
>
> Thanks very much - I really appreciate it.
>
> Phil
>
> --- Edmund.Reinhardt@ca.ibm.com wrote:
> > This is a multipart message in MIME format.
> > --
> > [ Picked text/plain from multipart/alternative ]
> > Yes you can add a label associated with a CHGPF
> > command to the Program
> > Generator and associate it with the member you are
> > editing.
> >
> > Steps:
> > 1) Edit the PF member
> > 2) Actions->Compile->Prompt ...
> > [Note that the PF member is assocaited with CRTPF
> > label by default. And
> > that the CRTPF label is associated with the CRTPF
> > command.]
> > 3) Change the label to CHGPF
> > 4) Change the command to CHGPF
> > 5) Change the user profile to 'User defined'
> > 6) Hit the Options button and make sure that the
> > value is:
> > &C FILE(&L/&M) SRCFILE(&L/&F) SRCMBR(&M)
> > You can add whatever addional parameters you wish
> > Of course this assumes that the PF you want to
> > change resides in the same
> > library as the SRC-PF
> > 7) Hit Ok button
> > 8) Hit Add
> > 9) Hit Submit to actually execute the command
> >
> > From now on the CHGPF label will be used with this
> > member
> > If you want the CHGPF label to be used with a
> > different member. Load the
> > member. Prompt a compile and select the CHGPF
> label
> > before doing a
> > submit.
> >
> > Hope this helps,
> >
> >
>
---------------------------------------------------------------------------------------------
>
> >
> > Edmund Reinhardt, AS/400 AD Tools,
> > reinhard@ca.ibm.com
> > Dept 607, IBM Canada Lab TL 969-4392 Phone
> > 905-413-4392
> >
> >
>
> __________________________________________________
> Do You Yahoo!?
> Send FREE video emails in Yahoo! Mail!
> http://promo.yahoo.com/videomail/
> _______________________________________________
> This is the CODE/400 Discussion & Support
> (CODE400-L) mailing list
> To post a message email: CODE400-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit:
> http://lists.midrange.com/cgi-bin/listinfo/code400-l
> or email: CODE400-L-request@midrange.com
> Before posting, please take a moment to review the
> archives
> at http://archive.midrange.com/code400-l.
>
>
>
>
> _______________________________________________
> This is the CODE/400 Discussion & Support
> (CODE400-L) mailing list
> To post a message email: CODE400-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit:
> http://lists.midrange.com/cgi-bin/listinfo/code400-l
> or email: CODE400-L-request@midrange.com
> Before posting, please take a moment to review the
> archives
> at http://archive.midrange.com/code400-l.
>
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
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.