IBM AS/400 manual Output Spooling, Srtseq/Altseq, SRTSEQ/ALTSEQ in an, File

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 303
Image 303
SRTSEQ/ALTSEQ

SRTSEQ/ALTSEQ

Output Spooling

Output

spooling

is

valid for batch or interactive jobs. The

descript

is specified

in

the RPG

program

by the file name contains

the spec

spooling

as shown

in the

following

diagram:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Spooled

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

File

 

 

 

 

 

 

 

 

 

 

 

 

 

RPG program

QPRINT

File name = QPRINT

SPOOL (*YES)

QUEUE (QPRINT)

Device = PRINTER

 

Execution Time

Start

Printer writer

Start Printer writer Time

Device

Spooling

Queue

QPRINT

Figure

138. Output Spooling Example

 

 

 

 

 

File

override commands can be used at run time to override the spo

specified

in the file description, such as the

number of

copies t

tion,

AS/400

spooling support

allows

you to

redirect

a

file

after the

run.

You

can direct the

same

printed

output to

a

different device

SRTSEQ/ALTSEQ in an

RPG

 

Program

versus

a

DDS

File

 

 

 

 

 

 

 

 

 

 

 

 

 

When

a

keyed

file

is

created

using

SRTSEQ

and

LANGID,

 

the

 

SRTSEQ spec

is

used when

comparing

character

keys

in the file during CHAIN,

SETLL,

READE

and READPE operations. You do not

have

to

 

specify

the

same,

or

SRTSEQ

value

when

creating

the

RPG

program

or module.

 

 

 

 

 

 

When a value for SRTSEQ is specified

on CRTBNDRPG or CRTRPGMOD, then all

character comparison operations in the

program

will

use

 

this

SRTSEQ.

Thi

affects the comparisonall fields,of

including

key

fields,

fields

from

other

fields

declared

in

the

program.

 

 

 

 

 

 

 

 

 

 

 

 

 

You

should

decide

whether

to use SRTSEQ

for

your

RPG

program

based

you

want operations such as IFxx, COMP,

and

SORTA,

to

work

on

your

ch

data,

not

on

what

was specified

when

creating

your

files.

 

 

 

Chapter 15. General File Considerations279

Page 303
Image 303
IBM AS/400 manual Output Spooling, Srtseq/Altseq, SRTSEQ/ALTSEQ in an, File