Presentation is loading. Please wait.

Presentation is loading. Please wait.

Handling Spooled Files and Printing Functions

Similar presentations


Presentation on theme: "Handling Spooled Files and Printing Functions"— Presentation transcript:

1 Handling Spooled Files and Printing Functions
Chapter 6 Handling Spooled Files and Printing Functions

2 Understanding AS/400 System Operations
AS/400 Printing Overview No program ever sends output directly to printer. Printed output always goes to hard disk storage. Printed output goes to output queue. System program, printer intercept program, delivers content to a printer. This type of printing called spooling. Output waiting to be directed to a printer is known as spooled files. Understanding AS/400 System Operations

3 Understanding AS/400 System Operations
The Printing Process Job produces a report. Printed output (report) goes to output queue. A program later sends the queued report to a printer for printing. Understanding AS/400 System Operations

4 Two Separate Functions
Program-to-Queue. Queue-to-Printer. Understanding AS/400 System Operations

5 AS/400 Typical Output Queues
QPRINT QSYSPRT Understanding AS/400 System Operations

6 Understanding AS/400 System Operations
Printer Writer The printer that prints, is a physical printer. AS/400 sees the logical device, that is the printer writer. Printer writers must be attached to an output queue to print anything. Understanding AS/400 System Operations

7 Jobs, Queues, and Printer Writers
Figure 6-1: Jobs, queues, and printer writers. Understanding AS/400 System Operations

8 Understanding AS/400 System Operations
Printing Commands Output queue commands: Create Output Queue (CRTOUTQ) Delete Output Queue (DLTOUTQ) Change Output Queue (CHGOUTQ) Display Output Queue (DSPOUTQ) Work with Output Queue (WRKOUTQ) Understanding AS/400 System Operations

9 Understanding AS/400 System Operations
Examples WRKOUTQ *ALL WRKOUTQ QPRINT Understanding AS/400 System Operations

10 All Output Queues Understanding AS/400 System Operations
Work with All Output Queues Type options, press Enter. 2=Change 3=Hold 4=Delete 5=Work with 6=Release 8=Description 9=Work with Writers 14=Clear Opt Queue Library Files Writer Status _ QDMT QDMT RLS _ COBOLOUTQ QGPL PRT RLS _ CPAOUTQ QGPL RLS _ FACOUTQ QGPL RLS _ OPROUTQ QGPL RLS _ QDKT QGPL RLS _ QPFROUTQ QGPL RLS QPRINT QGPL RLS _ QPRINTS QGPL RLS _ QPRINT QGPL RLS _ CPAOUTQ QUSRSYS RLS _ CPQOUTQ QUSRSYS RLS More … Command ===> __________________________________________________________________ F3=Exit F4=Prompt F5=Refresh F12=Cancel F24=More keys Figure 6-2: Samples of the WRKQUTQ *ALL command. This shows all output queues on an AS/400. Understanding AS/400 System Operations

11 Understanding AS/400 System Operations
Change Output Queue Change Output Queue (CHGOUTQ) Type choices, press Enter. Output queue > QPRINT Name Library > QGPL Name, *LIBL, *CURLIB Maximum spooled file size: Number of pages *SAME Number, *SAME, *NONE Starting time ______ Time Ending time ______ Time + for more values _ Order of files on queue *SAME *SAME, *JOBNBR, *FIFO Remote system *SAME Bottom F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel F13=How to use this display F24=More keys Figure 6-3: Change screen for QPRINT queue. Understanding AS/400 System Operations

12 Understanding AS/400 System Operations
Option5- Work With Work with Output Queue Queue: QPRINT Library: QGPL Status: RLS Type options, press Enter. 1=Send 2=Change 3=Hold 4=Delete 5=Display 6=Release 7=Messages 8=Attributes 9=Work with printing status Opt File User User Data Sts Pages Copies Form Type Pty 5 QPDZDTALOG A RDY *STD _ R1404DSP A RDY *STD _ R A RDY *STD _ R1404PF A RDY *STD _ R1505DIS A RDY *STD _ R A RDY *STD More . . . Parameters for options 1, 2, 3 or command ===> __________________________________________________________________ F3=Exit F11=View 2 F12=Cancel F20=Writers F22=Printers F24=More keys Figure 6-4: Option 5 (Work with) shows the contents of an output queue. Understanding AS/400 System Operations

13 Second View of Queue QPRINT
Work with Output Queue Queue: QPRINT Library: QGPL Status: RLS Type options, press Enter. 1=Send 2=Change 3=Hold 4=Delete 5=Display 6=Release 7=Messages 8=Attributes 9=Work with printing status Opt File File Nbr Job User Number Date Time 5 QPDZDTALOG QPADEV001J A /30/99 19:06:14 _ R1404DSP R1404DSP A /30/99 19:09:17 _ R R A /30/99 19:16:01 _ R1404DSP R1404DSP A /30/99 19:22:52 _ R R A /30/99 19:24:50 _ R R A /30/99 19:26:21 _ R1404PF R1404PF A /30/99 19:26:53 _ R1505DIS R1505DIS A /30/99 19:28:39 _ R R A /30/99 19:28:47 More. . . Parameters for options 1, 2, 3 or command ===> ___________________________________________________________________ F3=Exit F11=View 1 F12=Cancel F20=Writers F22=Printers F24=More keys Figure 6-5: Second view of spooled files in queue QPRINT Understanding AS/400 System Operations

14 Display Spool File Command
Display Spooled File (DSPSPLF) Type choices, press Enter. Spooled file ___________ Name Job name * Name, * User _________ Name Number _________ Spooled file number *ONLY , *ONLY, *LAST Bottom F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel F13=How to use this display F24=More keys Figure 6-6: Five fields had to be used to qualify this command. Understanding AS/400 System Operations

15 DSPSPLF Vs. WRKOUTQ Commands Parameters
Column Heading DSPSPLF command Matching Parameters in WRKOUTQ command view 2 File Spooled file Job name Job User Number File number Spooled file number Figure 6-7: Work with Output Queue column names match to parameter names. Understanding AS/400 System Operations

16 Understanding AS/400 System Operations
Spool File Commands Command Description CHGSPLFA Change Spool File Attributes CRYSPLF Copy Spool File DLTSPLF Delete Spool File DSPSPLF Display Spool File HLDSPLF Hold Spool File RLSSPLF Release Spool File SNDNETSPLF Send Network Spool File SNDTCPSPLF Send TCP Spool File WRKPRTSTS Work with Printer Status Figure 6-6: Commands that, if not used through the Work with command, require a lot of detail to identify spool files. Understanding AS/400 System Operations

17 Understanding AS/400 System Operations
Printed Spool File Display Spooled File File : QPDZDTALOG Page/Line 1/1 Control ____________________________ Columns Find __________________________________________________ * 5769SS1 V4R2M AUDIT LOG Library/File WAT1080LIB/R1404PF Member R1404PF Job Title WORK WITH DATA IN A FILE SSNO COURSE NUMBER TERM DATE COURSE NAME IN Changed ******** COMPUTER SCIENCE I CSC101 Changed ******** MICROCOMPUTERS I DPS110 Changed ******** ADVANCED C CSC310 Changed ******** INTRO TO C CSC210 Changed ******** CALCULUS I MTH201 Changed ******** COMPUTER SCIENCE II More. . . F3=Exit F12=Cancel F19=Left F20=Right F24=More keys Figure 6-9: Contents of spooled file. Understanding AS/400 System Operations

18 Spool File Control Line Commands
Action T Takes you to the top of the report (first page). B Takes you to the bottom of the report (last page). xx Puts line xx at the top of the screen. +xx Advances xx lines from the current line. -xx Goes back xx lines from the current line. Pxx Goes to the xx page of the report. P+xx Advances xx pages from the current page. P-xx Goes back xx pages from the current page. Wxx Puts the xx column on the left side of the screen. W+xx Shifts the report to the right xx characters. W-xx Shifts the report to the left xx characters. Figure 6-10: Commands for spool files. Understanding AS/400 System Operations

19 Change Spooled File Attributes
Change Spooled File Attributes (CHGSPLFA) Type choices, press Enter. Spooled file > QPDZDTALOG Name, *SELECT Job name > QPADEV Name, * User > A Name Number > Spooled file number > , *ONLY, *LAST Printer *OUTQ Name, *SAME, *OUTQ Print sequence *SAME *SAME, *NEXT Form type *STD Form type, *SAME, *STD Copies , *SAME Restart printing *STRPAGE Number,*SAME,*STRPAGE... Additional Parameters Output queue QPRINT Name, *SAME, *DEV Library QGPL Name, *LIBL, *CURLIB File separators , *SAME More. . . F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display F24=More keys Figure 6-11: Change Spooled File Attributes command – screen 1 Understanding AS/400 System Operations

20 Change Spooled File Attributes
  Change Spooled File Attributes (CHGSPLFA) Type choices, press Enter. Page range to print: Starting page Number, *SAME, *ENDPAGE Ending page *END Number, *SAME, *END File becomes available *FILEEND *SAME, *JOBEND, *FILEEND... Save file *NO *SAME, *NO, *YES Output priority , *SAME, *JOB User data ' 'User data, *SAME Align page *NO *SAME, *NO, *YES Print quality *STD *SAME,*STD,*DEVD,*DRAFT... Form feed *DEVD *SAME,*DEVD,*CONT,*CUT... Source drawer , *SAME, *E1, *FORMDF Print fidelity *CONTENT *SAME, *ABSOLUTE, *CONTENT Print on both sides *NO *SAME,*NO,*YES,*TUMBLE... Pages per side , *SAME Form definition *NONE Name,*SAME,*NONE,*DEVD... Library ____ Name, *LIBL, *CURLIB More. . . F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display F24=More keys Figure 6-12: Change Spooled File Attributes command – screen 2. Understanding AS/400 System Operations

21 Change Spooled File Attributes
Change Spooled File Attributes (CHGSPLFA) Type choices, press Enter. Front side overlay: Overlay *NONE Name, *NONE, *SAME Library ______ Name, *LIBL, *CURLIB Offset down _________ , *SAME Offset across _________ , *SAME Back side overlay: Overlay *FRONTOVL Name,*FRONTOVL,*NONE,*SAME User defined option *NONE Option, *SAME, *NONE + for more values _ User defined object: Object *NONE Name, *NONE, *SAME Library ________ Name, *LIBL, *CURLIB Object type __________ *DTAARA, *DTAQ, *FILE... Bottom F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display F24=More keys Figure 6-12: Change Spooled File Attributes command – screen 3. Understanding AS/400 System Operations

22 Multiple Command Changes
Work with Output Queue Queue: QPRINT Library: QGPL Status: RLS Type options, press Enter. 1=Send 2=Change 3=Hold 4=Delete 5=Display 6=Release 7=Messages 8=Attributes 9=Work with printing status Opt File User User Data Sts Pages Copies Form Type Pty 2 QPDZDTALOG A RDY *STD _ R1404DSP A RDY *STD 2 R A RDY *STD _ R1404PF A RDY *STD 2 R1505DIS A RDY *STD _ R A RDY *STD More . . . Parameters for options 1, 2, 3 or command ===> OUTQ(SYSPRT)______________________________________________________ F3=Exit F11=View 2 F12=Cancel F20=Writers F22=Printers F24=More keys Figure 6-14: Multiple changes in one operation from a Work with … menu. Understanding AS/400 System Operations

23 Printer Writer Commands
Create Device Print (CRTDEVPRT) Automatic configuration System Value QAUTOCFG Display System Value (DSPSYSVAL) Change System Value (CHGSYSVAL) Work with Writers (WRKWTR) Start Printer Writer (STRPRTWTR) End Printer Writer (ENDPRTWTR) Hold Printer Writer (HLDPRTWTR) Release Printer Writer (RLSPRTWTR) Understanding AS/400 System Operations

24 Start Printer Writer Command
Start Printer Writer (STRPRTWTR) Type choices, press Enter. Printer PRT01 Name, *ALL, *SYSVAL Output queue QPRINT Name, *DEV Library ______ Name, *LIBL, *CURLIB Queue for writer messages *DEVD Name, *DEVD, *REQUESTER Form type options: Form type *ALL Form type, *ALL, *STD, *FORMS Message option *INQMSG *INQMSG, *MSG, *NOMSG... File separators *FILE , *FILE Drawer for separators *DEVD , *DEVD, *FILE Bottom F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel F13=How to use this display F24=More keys Figure 6-15: Prompted version of the Start Printer Writer command. Understanding AS/400 System Operations

25 Selective Page Printing
Change Spooled File Attributes (CHGSPLFA) Type choices, press Enter. Spooled file > STDCRSPF Name, *SELECT Job name > STDCRSPF Name, * User > A Name Number > Spooled file number > , *ONLY, *LAST Printer *OUTQ Name, *SAME, *OUTQ Print sequence *SAME *SAME, *NEXT Form type *STD Form type, *SAME, *STD Copies , *SAME Restart printing Number, *SAME, *STRPAGE... Additional Parameters Output queue QPRINT Name, *SAME, *DEV Library QGPL Name, *LIBL, *CURLIB Bottom F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel F13=How to use this display F24=More keys Figure 6-16: Example to change a spool file to cause it to start printing on Page 501. Understanding AS/400 System Operations


Download ppt "Handling Spooled Files and Printing Functions"

Similar presentations


Ads by Google