I want to thank everyone who responded. We have found, through a combination of postings, a solution to our specific situation and we would like to thank the contributors
Thanks again Tom Dodds [EMAIL PROTECTED] 708-234-9608 Office 630-235-2975 Cell -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc Mergenthaler Sent: Thursday, February 16, 2006 12:35 PM To: [email protected] Subject: RE: [U2] Capturing hold file numbers. We have used code like the following to capture a print job number within a program. The SETPTR command must be executed after the PRINTER ON and at least one line has been printed and before the PRINTER OFF/CLOSE statement. We are using UV 9.5.1.1E on an IBM RS6000 AIX system. PRINTER ON PRINT "" EXECUTE "SETPTR", OUT > PRINT.INFO PRINTER OFF PRINTER CLOSE PRINT.FILE.INFO = FIELD(PRINT.INFO,'/',2,4) PRINT.FILE.PATH.NAME = FIELD(PRINT.FILE.INFO,@AM,1) * Adjust the FIELD statement based on the spoolers path PRINT.JOB.NUMBER = FIELD(PRINT.FILE.PATH.NAME,'/',4,1)[3,5] CRT PRINT.JOB.NUMBER Running the program produces the following output: Spooler Entry #16719 16719 Hope this helps, Marc Mergenthaler HMS Healthcare Greenwood Village, CO 80111 [EMAIL PROTECTED] 303-504-5408 Office ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
