DBPRINT variable (fwd)
Posted in 1992
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL
Forwarded message: > I have a 4gl program that prints the report directly to printer. It always > used to print on only one printer. I have a shell script that defines the > DBPRINT="lp -d lp1a". This works fine. Now we have a more than one printer. > So, user should be able to select the printer. How can I reset the DBPRINT > variable in 4gl program? I tried to run the shell script using the RUN > command in 4gl. Shell script looks like the following. > > PRINTER=lp2; export PRINTER > DBPRINT="lp -d lp2"; export DBPRINT > > Could you please tell me what am I doing wrong? or should I use another > method? Note that, as in life, a child cannot change the environment of their parent. ------------------------------------------------------------------------------ Neal Rhodes MNOP Ltd (404)- 972-5430 President Lilburn (atlanta) GA 30247 Fax: 978-4741 emory!mnopltd!neal ------------------------------------------------------------------------------