Troy, Go look in $JBCRELEASEDIR/config/jspform_deflt
It is VERY well commented and you can throw commands in here to save the print job to a file before or after the print. You will need to make a copy, calling it something like jspform_yourchiceofnames You can then use SP-TYPE to assign this form to a form queue for your printer. PLEASE NOTE: You do not use the full name (jspform_yourchiceofnames) in the assignment, you ONLY use the second half, i.e. yourchiceofnames Alternatively, you can use SP-DEVICE PROG to send the output to a a program/script that saves stdin to a file and then pipes the file (as stdout) to lpr HTH Robert On Thursday, May 2, 2013 6:58:02 PM UTC-4, troyd1 wrote: > > I am working on a system that creates print jobs by turning the printer on > and then using print statements. I would like to be able to capture the > output from the print statements into a variable in a program to do > something with them (basically capturing the print job into a variable). > > Here are my thoughts: > > Isolate the code and execute it and use a capturing statement. > > Do a como on statement and capture the output that way. If I need to do > this, is there a way to have the output only go to the como file? > > I guess what I am looking for is a way to do this with minimal changes to > the program. Basically do a "printer on" and save all output to a variable > or alternately a file. I am on jbase 3.4 on an old version of linux. > > Thanks in advance for any help. > -- -- IMPORTANT: T24/Globus posts are no longer accepted on this forum. To post, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jBASE?hl=en --- You received this message because you are subscribed to the Google Groups "jBASE" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
