Information Systems:Print (or Spool) Files

From uniWIKI
Jump to navigation Jump to search

Print (or Spool) Files

View by User

To see a particular user’s print jobs that have not yet been printed, key in the command WRKSPLF <user ID> and press enter. To see your own, just key in WRKSPLF.

                         Work with All Spooled Files                           
                                                                               
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                              
                                                                               
                             Device or                     Total     Cur       
Opt  File        User        Queue       User Data   Sts   Pages    Page  Copy 
 _   FLR202P     EODJOB      QPRINT      FLR202      HLD       2             1 
 _   FMR065P     EODJOB      QPRINT      FMR065      HLD       1             1 
 _   FMR050P     EODJOB      QPRINT      FMR050      HLD       1             1 
 _   GCFP852     EODJOB      QPRINT      GCFR852     HLD       2             1 
 _   FKR050P     EODJOB      QPRINT      FKR050      HLD       2             1 
 _   WMR251P     EODJOB      PRT01       WMR251      HLD       1             1 
 _   WMR251P     EODJOB      PRT01       WMR251      HLD       1             1 
 _   GCFP852     EODJOB      QPRINT      GCFR852     HLD       2             1 
 _   FLR202P     EODJOB      QPRINT      FLR202      HLD       2             1 
                                                                       More... 
Parameters for options 1, 2, 3 or command                                      
===> ____________________________________
                                                                         
F3=Exit   F10=View 4   F11=View 2   F12=Cancel   F22=Printers   F24=More keys  
 

Press F11 to see the date and time the spool file was created. Use option 5 to look at the file.

Send to Printer

If you want to print the file but ‘Device or Queue’ is QPRINT or PRT01, use option 2 to change to an output queue that is attached to a physical printer. (See the next section for an explanation of what output queues are.)

                   Change Spooled File Attributes (CHGSPLFA)                   
                                                                               
Type choices, press Enter.                                                     
                                                                               
Spooled file . . . . . . . . . . > QPTAPDSP      Name, *SELECT                 
Job name . . . . . . . . . . . . > DSPTAPE       Name, *                       
  User . . . . . . . . . . . . . >   EODJOB      Name                          
  Number . . . . . . . . . . . . >   298072      000000-999999                 
Spooled file number  . . . . . . > 1             1-999999, *ONLY, *LAST, *ANY  
Job system name  . . . . . . . . > BART          Name, *ONLY, *CURRENT, *ANY   
Spooled file created:                                                          
  Creation date  . . . . . . . . > 12182014      Date, *ONLY, *LAST            
  Creation time  . . . . . . . . > 045916        Time, *ONLY, *LAST            
Printer  . . . . . . . . . . . .   *OUTQ         Name, *SAME, *OUTQ            
Print sequence . . . . . . . . .   *SAME         *SAME, *NEXT                  
Form type  . . . . . . . . . . .   *STD          Form type, *SAME, *STD        
Copies . . . . . . . . . . . . .   1             1-255, *SAME                  
Restart printing . . . . . . . .   *STRPAGE      Number, *SAME, *STRPAGE...    
                                                                               
                                                                       More... 
F3=Exit   F4=Prompt   F5=Refresh   F10=Additional parameters   F12=Cancel      
F13=How to use this display        F24=More keys                               
                                                                               

Not on the first screen, where is says ‘*OUTQ’, but on the second page. So press page down.

                   Change Spooled File Attributes (CHGSPLFA)                   
                                                                               
Type choices, press Enter.                                                     
                                                                               
                            Additional Parameters                               
                                                                               
Output queue . . . . . . . . . . > ELAHO         Name, *SAME, *DEV             
  Library  . . . . . . . . . . .     *LIBL       Name, *LIBL, *CURLIB          
                                                                               
                                                                        Bottom 
F3=Exit   F4=Prompt   F5=Refresh   F10=Additional parameters   F12=Cancel      
F13=How to use this display        F24=More keys                               
                                                                               

Key in the name of the printer you want (for physical printers, the output queue has the same name as the printer). Clear the library name, and press enter. *LIBL will be inserted, so the library list will be used to find the queue. Press enter again.

Then check the ‘Sts’ column. If it says HLD (held), the entry will have to be released with option 6.

View All Print Files

To see all print jobs that have not yet printed, key in the command WRKOUTQ.

This will show all the output (or printer) queues, how many print jobs there are for each, and the status.

                         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        
 _      OMMQ           OMMPRD              0                      RLS          
 _      AIPQUEUE       QGPL                0                      RLS          
 _      ASWPICKLST     QGPL             1378                      RLS          
 _      ASWPUTAWAY     QGPL                0                      RLS          
 _      ASWSOREDI      QGPL              916                      RLS          
 _      ASWTSTWHSQ     QGPL                0                      RLS          
 _      ASW4DEV        QGPL                0                      RLS          
 _      CONVERSION     QGPL                0                      RLS          
 _      ELAHO          QGPL                5      ELAHO           RLS          
 _      GARBAGE        QGPL                0                      RLS          
 _      JIMH           QGPL                0                      RLS          
 _      LEX420         QGPL                0      LEX420          RLS          
                            

Use option 5 to see what print jobs are in a particular queue.

                            Work with Output Queue                             
                                                                               
Queue:   ELAHO          Library:   QGPL           Status:   RLS/WTR            
                                                                               
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 
 _   RWRP191     FINADMIN    RWRR191     HLD      69       1   *STD         5  
 _   Z3DP101     PAULAE      Z3DR101     HLD       1       1   *STD         5  
 _   Z3DP101     PAULAE      Z3DR101     HLD       1       1   *STD         5  
 _   Z3DP101     PAULAE      Z3DR101     HLD       1       1   *STD         5  
 _   DIR271P     JOHNT       DIR271      HLD     426       1   *STD         5  

Output Queues

‘Work With All Output Queues’ shows all the output queues. This can be many things –

Staging area for reports to be printed. This can be determined by the fact there is a ‘writer’ attached to the queue.

  __   DCOFFICE       QGPL                  0      DCOFFICE        RLS 
  __   ELAHO          QGPL                  4      ELAHO           RLS

Holding area for reports that are to be deleted. Some reports are generated, but are never printed. They are cancelled during the end of day process. You can tell which these are because there is no writer attached, and if you use option 5 to see the files, then press F11, all the create dates will be today.

  __   ASWPICKLST     QGPL                585                      RLS   
  __   ASWPUTAWAY     QGPL                  0                      RLS   
  __   ASWSOREDI      QGPL                558                      RLS   

Holding area for reports that aren’t to be printed, but are archived. Some reports are not printed, but are saved in case they are needed in the future. You can tell which these are because there is no writer attached, and if you use option 5 to see the files, then press F11, there will be some old create dates. For example, queues starting with ‘FIN’, in the library ‘FINANCE’, or ‘EDI’ in the library ‘QUSRSYS’.

  __   FININVREG      FINANCE            2313                      RLS
  __   FININVVAL      FINANCE             562                      RLS
  __   FIN201506      FINANCE              11                      RLS 
  __   FIN201507      FINANCE              11                      RLS

Conduit to send reports to Jet Forms. These are not attached to printers, but instead to the server that runs Jet Forms. You can tell this by using option 2, then F10, and seeing –

Remote system . . . . . . . . . *INTNETADR Character value, *SAME... Remote printer queue . . . . . . 'JFSRVR' Character value, *SAME...

  __   JFHOLD         QUSRSYS               3                      HLD  
  __   JFPIPE         QUSRSYS             538      JFPIPE          RLS  
  __   JFSTMTS        QUSRSYS               0      JFSTMTS         RLS  
  __   JFTEST         QUSRSYS               0      JFTEST          HLD  

Printer definition for Jet Forms. These are printers that are not used directly by the i, but have to be defined so that their names can be used to tell Jet Forms where to print invoices. For more information, see the section on ‘Jet Forms’.

  __   L90INV08B      QUSRSYS               0      L90INV08B       RLS      
  __   NARINV09A      QUSRSYS               0      NARINV09A       RLS      
  __   OTCINV02A      QUSRSYS               0      OTCINV02A       RLS  
   

Status (Sts)

RDY (Ready) - The file is available to be written to an output device by a writer.

OPN (Open) - The file has not been completely processed and is not ready to be selected by a writer.

DFR (Deferred) - The file has been deferred from printing.

SND (Sending) - The file is being or has been sent to a remote system. If this status lasts more than a few seconds it indicates a problem (unless it is an unusually large print job).

CLO (Closed) - The file has been completely processed by a program.

HLD (Held) - The file has been held.

SAV (Saved) - The file has been written and then saved. This file will remain saved until it is released or deleted. WTR (Writer) - This file is currently being produced by the writer on an output device. PND (Pending) - The file is pending to be printed.

PRT (Printing) - The file has been completely sent to the printer but print complete status has not been sent back.

MSGW (Message Waiting) - This file has a message which needs a reply or an action to be taken.

Problems

If there is a problem with a printer, find it on the list displayed by WRKOUTQ. If the number of files is zero, there is nothing waiting to print, so the problem is elsewhere. If the status is HLD (held), it must be released (option 6). If there is not a writer shown, restart it with option 2, enter, enter.

Use option 5 on the output queue to see the spooled files waiting, and look at the status of the top one. If it is status HLD (held), or SAV (saved), there is nothing waiting to print, so the problem is elsewhere. If it is SND (sending) or WTR (writer), and stays like that, the data is not getting to the printer. If it is MSGW (message waiting) there is a message waiting to be answered, for QSYSOPR. If it is RDY (ready) Use option 9 (work with printing status) and press enter. This may tell you something useful. Try option 2 (change status).

Problems

If there is a problem with a printer, find it on the list displayed by WRKOUTQ. If the number of files is zero, there is nothing waiting to print, so the problem is elsewhere. If the status is HLD (held), it must be released (option 6). If there is not a writer shown, restart it with option 2, enter, enter.

Use option 5 on the output queue to see the spooled files waiting, and look at the status of the top one. If it is status HLD (held), or SAV (saved), there is nothing waiting to print, so the problem is elsewhere. If it is SND (sending) or WTR (writer), and stays like that, the data is not getting to the printer. If it is MSGW (message waiting) there is a message waiting to be answered, for QSYSOPR. If it is RDY (ready) Use option 9 (work with printing status) and press enter. This may tell you something useful. Try option 2 (change status).