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



Brian,

For such things, I rely on the System() API in QC2LE.  This is what you 
need:

     h bnddir('QC2LE')

     fbclbl132  o    e             printer UsrOpn

     d System          PR            10i 0 ExtProc('system')      System 
Command
     d                                 *   value options(*string)    

      /free 
 
         If %open(bclbl132);
            Close bclbl132;
         Endif;

         System('OVRPRTF FILE(BCLBL132) CPI(10) OUTQ(PQ2BC) 
FORMTYPE(*STD)');
 
         Open bclbl132;

         // Do your thing here...

      /end-free


HTH,

Peter Colpaert
Application Developer
Massive - Kontich, Belgium
-----
Yoda of Borg are we.  Futile is resistance, assimilated will you be.
-----




"Brian Piotrowski" <bpiotrowski@xxxxxxxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
07/09/2005 14:31
Please respond to RPG programming on the AS400 / iSeries

 
        To:     "RPG programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx>
        cc: 
        Subject:        Executing Commands within an RPG program


Hi All,

 

I need to run a printer override statement within my RPG program.  Can
someone remind me how I execute from within RPG?

 

I need to run this command from within my program:

 

OVRPRTF FILE(BCLBL132) CPI(10) OUTQ(PQ2BC) FORMTYPE(*STD)

 

Thank you!

 

Brian.

 

-=-=-=-=-=-=-=-=-=-=-=-=-=-

Brian Piotrowski

Specialist - I.T.

Simcoe Parts Service, Inc.

Ph: 705-435-7814 x343

Fx: 705-435-6746

bpiotrowski@xxxxxxxxxxxxxxx

-=-=-=-=-=-=-=-=-=-=-=-=-=-

 


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.