Hi Jim, That looks good too, although now I'm wondering about performance considerations, QSH vs CPYFRMIMPF and either RUNQRY or CPYF. On the other hand if there's no way to override the printer file for QSH's pr command, yours may be the simplest solution short of writing a program to do it. Thanks. Peter Dow Dow Software Services, Inc. 909 425-0194 voice 909 425-0196 fax ----- Original Message ----- From: "Jim Franz" <firstname.lastname@example.org> Sent: Monday, December 17, 2001 7:56 PM Subject: Re: Printing from the IFS > i've done this (in 3 steps) could easily turn this into a cmd with parms for > file name,etc > CHKOBJ OBJ(IFSDTA) OBJTYPE(*FILE) > MONMSG MSGID(CPF9801) EXEC(CRTPF FILE(IFSDTA) RCDLEN(198)) > CPYFRMIMPF FROMSTMF('/files/abc.txt') TOFILE(IFSDTA) MBROPT(*REPLACE) > RUNQRY QRY(*NONE) QRYFILE((IFSDTA)) OUTTYPE(*PRINTER) FORMSIZE(66 198) > can set any spool overrides you want before runqry with ovrprtf. > jim franz _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.