HP RPG/iX Utilities Reference Manual (30318-90006)

7-66
00005I C 33NECX
00010FNC 6 9
00020FDC 1 32
00030FDV *
9
!EOD
10
!SAVE TSTOUT
!FCOPY FROM=TSTOUT;TO=
11
!EOJ
1 The first command in a job must be the JOB command, followed by the user name, account name,
andoptionally the group name. Inproductionwork it isuseful to specify a job name beforethe user
name to identify the specific job that is being run. In this example, TSTXSRT1 is the job name.
2 Comment lines are used to describe the function or nature of the job.
3 The first program to be run in the job is FCOPY. It is included in order to show the contents of the
input file prior to sorting. FCOPY is instructed to copy from the file TSTIN to the standard job/
session device, $STDLIST.
4 A file named TSTOUT is used for each of the jobs. It is purged initially to make sure that the name
does not exist in the group.
5 The file referenced as XSORTIN is equated to the actual file named TSTIN.
6 The file referenced as XSORTOUT is equated to the actual file named TSTOUT.
7 The program XSORT.PUB.SYS is run.
8 These are the specifications for the sort. Note that they are not entered with the exclamation point
since they are used as data by the XSORT program, instead of being used as MPE commands.
9 !EOD, entered with an exclamation point, indicates that you have entered all necessary data for
the sort.
10 The output file TSTOUT is to be saved.
11 !EOJ signifies that you have completed the job entries.
The following is a physically condensed copy of the previous example after it was run. It includes the
output of the sort.
:JOB TSTXSRT1,MGR.SUBSYS,XSORT
PRIORITY = DS; INPRI = 8; TIME = UNLIMITED SECONDS
JOB NUMBER = #J59
WED, MAR 11, 1981, 9:44.AM
HP3000 / MPE IV C.00.P8
D U K E
COMMENT *************************
:COMMENT *************************
:COMMENT THIS IS AN EXAMPLE OF NOW TO USE "XSORT" WITH
:COMMENT SINGLE INPUT-TO-DIFFERENT OUTPUT
:FCOPY FROM=TSTIN;TO=