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

7-65
About the Job Stream Examples
The easiest way to prepare job control commands is to enter them in a disk file using EDIT/3000. When
you want to run a job stored in a disk file, you can use the MPE :STREAM command. All of the stream jobs
described in the examples use this method.
When preparing a job to be streamed, you must substitute another character for the colon normally used
with MPE commands. Any ASCII character may be used except the letters A through Z or the numbers 0
through 9. The character most commonly used is the exclamation point.
Although each of the job stream examples has unique characteristics, all have some in common. A general
discussion of the commands for Example 1 will cover most of the common ground for the various sort
configurations covered here. Where unique qualities are present, additional explanations will be appended
to the example.
Example 1: Job Stream With Specifications Imbedded
Single input to different output.
1
!JOB TSTXSRT1,MGR.SUBSYS,XSORT;OUTCLASS=,1
2
!COMMENT *************************
!COMMENT *************************
!COMMENT THIS IS AN EXAMPLE OF HOW TO USE "XSORT" WITH
!COMMENT SINGLE INPUT-TO-DIFFERENT OUTPUT
3
!FCOPY FROM=TSTIN;TO=
4
!PURGE TSTOUT
5
!FILE XSORTIN=TSTIN
6
!FILE XSORTOUT=TSTOUT
7
!RUN XSORT.PUB.SYS
8
0000HSORTR 4A X 33
6 F These are field description lines.
7 N This is a normal control field. This is a data field.
D This is a data field.
8 C Use full characters in the field. Force a data character into the data field.
9-12 V Force a data character into the data field
13-16 9,32 These are the starting positions of the data fields in the records.
18 * This is the character you are forcing by using your column 8 entry.
Column Entry Explanation