× 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.



--
[ Picked text/plain from multipart/alternative ]
Hi Amitiva,

     I use the method I described without a problem and it is really very
simple.  I think I just explained it poorly.  It is hard for me to determine
what went wrong without seeing the RPG compile listing that you can view by
typing WRKSPLF ASSET <ENTER> and viewing the RPG compiler listing (which
occurs after all of the AS/SET source generation listings).

     My guess is that the printer file name in the source subroutine was not
correct?  The name of the Printer File to use in the source subroutine is the
name that the program compiles to during the AS/SET generation as in my
example below:

BP05505         Source / Object Compile Options - TCKNPI         More:



Select ("/") one or more items, then select an action. Or type one or more

action codes. Then Enter. Use F16 or F18 to submit for compile.

  2=Change_Compile_Prompts  6=Print_Source

               Obj  Gen

Act Type       Chg  Obj  Member     File       Library    Object     Library



    *CLP        Y    Y   TCKNPIC    QCLSRC     RMSSPHI    TCKNPIC    RMSPHI

    *MSG                 CLMSG      QCLSRC     RMSSPHI    CLMSG      RMSPHI

    *PRTF       Y    Y   TCKNPIO1   QDDSSRC    RMSSPHI    TCKNPIO1   RMSPHI

    *PRTF       Y    Y   TCKNPIO2   QDDSSRC    RMSSPHI    TCKNPIO2   RMSPHI

    *PRTF       Y    Y   TCKNPIO3   QDDSSRC    RMSSPHI    TCKNPIO3   RMSPHI

    *PRTF       Y    Y   TCKNPIO4   QDDSSRC    RMSSPHI    TCKNPIO4   RMSPHI

    *RPG        Y    Y   TCKNPI     QRPGSRC    RMSSPHI    TCKNPI     RMSPHI


In my example, I was making printer file TCKNPIO2 user controlled.

If this is not the cause of your compile error, then please review the RPG
compile listing (at the bottom of the listing is a list of the errors) and
maybe I can determine the cause with some of this information.  Also, please
provide a copy of the RPG Source subroutine code and a screen print of the
AS/SET program sub-routines screen positioned to the page with the source
subroutines.

P.S.  I also had a few typo errors when I was explaining the use of
'QCMDEXC'.  I meant to call the variable OVRPRTF (not OVRDBF or CPYSPLF) that
was to contain the concatenated string for the OVRPRTF command.  NOTE: I
believe this call must be done while the printer file is closed.

Regards,
Andy


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.