PreviousNext
Help > Programming with LAUNCHER Office > CL Commands > CRTPRNSPLF - CL Command
CRTPRNSPLF - CL Command

 The CRTPRNSPLF command creates an AS/400 spool file from a PRN file that is on the IFS.
A PRN file is a file that can be generated from any Windows program using the
 print command of that program and checking 'into file' in the print dialog box.
This PRN file can also be a result of LAUNCHER Office commands (for example
LNCPRTDOC).
The PRN file can be transferred into the IFS using the IFSPUT LAUNCHER Office
command.

 

 

Parameters

 

Name of the PRN file in IFS

FILE

 

Spool filename

SPLFNAME

Value alpha

User name

USER

Value alpha, *CURRENT

Output queue

OUTQ

Name, *JOB

Library

*LIBL

Name, *LIBL, *CURLIB

From type

FORMTYPE

Value alpha, *STD

Copies

COPIES

1-255

Hold spooled file

HOLD

*NO, *YES

Save spooled file

SAVE

*NO, *YES

Output priority (on OUTQ)

OUTPTY

1-9, *JOB

User reference

USRDTA

Value alpha

User text

 

 

Type de données imprimante

 

*USERASCII

Rotation des pages

 

*NO  

 

 

Details

 

Name of the PRN file in the IFS (FILE)

Specifies the name of the PRN file in the IFS that will be used
to create the spool file.

This parameter is mandatory.

 

 

Spool file name (SPLFNAME)

Specifies the spool file name to create on the AS/400.

Possible values are:

LNCPRNPRT

The LNCPRNPRT spool file name is used by default.

spool-file-name

Enter a spool file name to create (10 maximum characters).

 

 

User name (USER)

Specifies the creator of the spool file.

Possible values are :

*CURRENT

Use the active user profile.

user-name

Choose an AS/400 user profile.

 

 

Output queue (OUTQ)

Specifies the full qualified name of the output queue.

The possible values are :

*JOB

The output queue associated with the job will be used.

output-queue

Enter an output queue.

The possible library values are :

*LIBL

The library list is searched to find the library where the output queue is located.

*CURLIB

The output queue is searched in the current library of the job.

Library-name

Enter the name of the library that contains the output queue.

 

 

Form type (FORMTYPE)

Specifies the paper type.

Possible values are:

*STD

The standard form type is used.

form-type

Any form type.

 

 

Copies (COPIES)

Specifies the number of copies for the spool file.

This value must be between 1 and 255.

 

 

Hold spooled file (HOLD)

Specifies to hold the spool file or not.

Possible values are:

*NO

Do not hold the spool file.

*YES

Hold the spool file. See RLSSPLF to release the spool file.

 

 

Save spooled file (SAVE)

Specified to keep the spool file (in the output queue) after print or not.

Possible values are :

*NO

Do not keep the spool file after print.

*YES

Keep the spool file in the output queue after print.

 

 

Output priority (on OUTQ)

Specifies the output priority for the spooled file.

The highest priority level is 1, and the lowest priority level is 9.

Possible values are :

*JOB

Use the current job output priority.

output-priority

The output priority value, between 1 (highest priority level) and

9 (lowest priority level).

 

 

User data (USRDTA)

Specifies a user-defined reference to identify the spool file.

This reference is a 10 characters text.

 

 

User text (USRTXT)

Specifies a 100 characters text to comment the spool file.

 

 

Printer data type (DEVTYP)

*USERASCII (default)

*SCS     

*LINE    

*AFPDS   

*AFPDSLINE

*IPDS    

 

Rotating pages

*YES

*NO (default)

 

Example

 

The following example prints a document to a PRN file, sends the PRN file to the IFS, and then forwards it to a spool file.

 

LNCPRTDOC

DOC('C:\Modeles\layout.doc')
MRGTYPE(*FILE)
FROMFILE(SP_LAYOUT)
OUTPUT(*OUTPRN)
OUTPRN('C:\temp\layout.prn')
ENDOPT(*APP)

CHGVAR

VAR(&CMD) VALUE('IFSPUT')

CHGVAR

VAR(&PARM1) VALUE('C:\Temp\layout.prn')

CHGVAR

VAR(&PARM2) VALUE('/QDLS/IMAGES/Layout.prn')

CALL

PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 +
&PARM2 &RESULT)

 

 

CRTPRNSPLF

FILE('/QDLS/IMAGES/Layout.prn')
SPLFNAME(PRNSPLF)
USRTXT('Document Word')

 

 

RMVLNK

OBJLNK('/QDLS/IMAGES/Layout.prn')

CALL

PGM(LNCCLOSE)