Using Net Print/400 within Webulator/400This chapter tells you how to use the I/NET Net Print/400 product in a Webulator/400 session. The following topics will be covered:
The Send Spooled Files Using Net Print/400 (SNDSPLFNP) command accepts parameters for a specific spooled file, and the calls the main processing program NETPRTIB which in turn sends an AS/400 spooled file to a PC for printing or display.
for basic information about the I/NET Webulator/400 product, visit the website at
http://www.inetmi.com/iseries/webulator
WRKSPLFNP) command generates a list of spool files according to the parameters given. This is meant as an aid to assist in the selection of spooled files that are to be printed at the browser.
The Work with Spooled Files using Net Print/400 (WRKSPLFNP) is intentionally similar to the interface and selection criteria used by the WRKSPLF command. If you type WRKSPLFNP, and then prompt, you will see the image in Figure 3.1. Using the default settings, you would be presented with a list of the spooled files that are currently available for the user signed on.
A typical WRKSPLF scenario would be:
NETPRTINET) is not in your library list, add it by typing the command addlible netprtinet - and press the enter key.
WRKSPLFNP, and press F4 (prompt), and then fill in the appropriate parameters. See Figure 3.1.
Figure 3.1 The WRKSPLFNP Command Prompted
Using the list of spooled files generated in Figure 3.2, Type "1" in one or more rows. Press enter to print, or press F4 to change the parameters used to call SNDSPLFNP. Other panel options include: 2 - Change spooled file attributes. 3 - Hold the spooled file. 4 - Delete the spooled file. 5 - Display the contents of the spooled file in HTML form. 6 - release the spooled file (if held). 8 - Display the attributes of the spooled file. You can also use F10, F11 and toggle between three sets of column formats for each spooled file.
Note: Option 5 will display the spooled file in an HTML form using Net Print/400. To display the spooled file directly within the 5250 emulation of the Webulator/400 screen, use the WRKSPLF or DSPSPLF system commands.
User
The name of the user whose spooled files are to be included in the list. This parameter can be used in conjunction with the output queue and library name, form type, and user-specified data parameters to return a partial list of all the spooled files.
The possible special values are:
*CURRENT
The user profile under which the current job is running is used to select available reports. (Default) *ALL
Files created by all users are selected.User-Name
Specify the name of the user whose user print information is to be displayed.Output Queue
The name of the output queue whose files are to be included in the list, and the library in which it is located. This parameter can be used in conjunction with the user name, form type, and user-specified data parameters to return a partial list of all the spooled files.
The possible special values for the output queue are:
*ALL
Files from all output queues will be included in the list. (Default)Output Queue Name
The name of the output queue.You can use these special values for the library name:
*CURLIB
The job's current library*LIBL
The library list.Form Type
The type of forms that would typically be used in the printer when requesting printed output for this type of report. The form type is the value specified on the printer file or the OVPRTF command when the specific report was created. This parameter can be used in conjunction with the user, output queue name, and user-specified data parameters to return a partial list of all the spooled files.
The possible special values for the form type are:
*ALL
Files for all form types will be selected for inclusion in the list. (Default)*STD
Only files that specify the standard form type will be selected. User Data
The user-specified data value whose files are to be included in the list. User Data is the value specified on the printer file, the OVPRTF command, or within the program when the specific report was originally created. This parameter can be used in conjunction with the user name, output queue name, and form type parameters to return a partial list of all the spooled files.
The special value supported is:
*ALL
Files with any user-specified data values will be included in the list of reports. (Default)Manufacturer Type and Model
Specifies the manufacturer, type, and model that corresponds to the printer type and model of the printer where the spooled file will be printed. If the Manufacturer Type and Model of your printer is not included in the list provided, you can also create a Workstation Customizing Object or an ASCII device description that help define the characteristics needed. Please refer to the WSCST or DEVD parameters below. This is a required parameter.
*WSCST
If *WSCST is used, a workstation customizing object and library must be entered.*DEVD
If *DEVD is used, a device description must be entered.*USRPRF
If *USRPRF is used, the printer settings from the last previous execution of SNDSPLNP by the user will be retrieved for use during this session.Note: The easiest way to print a spooled file in regards to this parameter is to select a printer from the list of available printers (refer to Appendix A, "Available Printer Types,"), and enter that in the Manufacturer Type and Model parameter. Using a Workstation customizing object requires modification of the source code of an existing WSCST object, or creating source code from scratch.
Workstation Customizing Object
A User created Workstation customizing object that represents a printer manufacturer and model. This parameter is prompted only when MFRTYPMDL(*WSCST) is specified.
Library
This sub-parameter contains the name of the library that holds the user created WSCST. The default value is *LIBL. Prompted only when MFRTYPMDL(*WSCST) is specified.
Device Description
Specifies the name of an AS/400 printer device used to control the attributes for printing the spooled file requested. These attributes should match those of the actual printer that will be used to print the spooled file. This parameter is prompted only when MFRTYPMDL(*DEVD) is specified.
SNDSPLFNP) command is used to print or display a specified spooled file at the browser. It transforms spooled file data to ASCII format for the selected printer type. The file is then sent to the browser.
You can use the command SNDSPLNP independent of the Work with Spooled Files using Net Print/400 (WRKSPLFNP) interface. Type in the command SNDSPLFNP and prompt (F4).
Using the command SNDSPLFNP (see Figure 3.3) a typical session would be:
NETPRTINET) is not in your library list, add it by typing the command addlible netprtinet - and press the enter key.
SNDSPLFNP - and press F4 (prompt), and fill in the appropriate parameters.
Figure 3.3 SNDSPLFNP Command Prompted
Spooled File
This is the file name that was specified by the user program when the file was created, or the name of the device file used to create this file. This is a required parameter.
Qualified Job Name (Job Name/User Name/Job Number)
This parameter has three separate pieces of information, all in one parameter. This is a required parameter.
JobName:
This is used to identify the spooled file. Specifies the name of the job that created the spooled file.
The special value of `*' indicates that the job that issued this command is the job that created the spooled file.
UserName
This parameter specifies the name of the user that owns the spooled file.
JobNumber
This is the number of the qualified job name. This is used to identify the spooled file to be transformed.
Spooled File Number
This specifies the number of the job's spooled file that is to be printed. This is a required parameter.
The possible values are:
*ONLY
Only one spooled file in the job has the specified file name; therefore, the number of the spooled file is not necessary. If *ONLY is specified and more than one spooled file has the specified file name, an error message is returned.*LAST
The spooled file with the highest number for the specified file name is used. (Default)Spooled-File-Number
Specify the number of the spooled file having the specified file name whose data records are to be printed. Manufacturer Type and Model
Specifies the manufacturer, type, and model that corresponds to the printer type and model where the spooled file will be printed. If the Manufacturer Type and Model of your printer is not included in the list provided, you can also create a Workstation Customizing Object or an ASCII device description that help define the characteristics needed. Please refer to WSCST or DEVD parameters below for more information on using these options.
The possible values are:
*WSCST
If *WSCST is used, a workstation customizing object and library must be entered.*DEVD
If *DEVD is used, a device description must be entered. *HTML
If *HTML is used, the spooled file will be displayed at the browser in HTML form. *USRPRF
If *USRPRF is used, the printer settings from the last previous execution of SNDSPLNP by the user will be retrieved for use during this session.
Note: The easiest way to print a spooled file in regards to this parameter is to pick a printer from the list of available printers, and enter that in the Manufacturer Type and Model parameter. Using a Workstation customizing object requires modification of the source code of an existing WSCST object, or creating source code from scratch. For more discussion on *WSCST, and *DEVD, see "The Manufacturer Type and Model Parameter" in Chapter 5.
Workstation Customizing Object
A user created workstation customizing object that represents a printer manufacturer and model. This parameter is prompted only when MFRTYPMDL(*WSCST) is specified.
Library
This sub-parameter contains the name of the library where the user created WSCST can be found. The default value is *LIBL. Prompted only when MFRTYPMDL(*WSCST) is specified.
Device Description
Specifies the name of an AS/400 printer device to be used to control the attributes for printing the spooled file requested. These attributes should match those of the actual printer that will be used to print the spooled file. This parameter is prompted only when MFRTYPMDL(*DEVD) is specified.
monmsg) in a CL program if SNDSPLFNP is executed in an interactive Webulator/400 session. Listed below in Table 3.1 are the possible message ID's that can occur during a Webulator/400 session. Users should refer to the individual message details in the joblog for information about specific failures..
For more information on CL message monitoring see the OS/400 CL Programming book (document ID SC41-5721).
Copyright © I/NET All rights reserved.