SNA NRJE User/Programmer Reference Manual (30292-90006)

Appendix A 217
Parsing Algoithms and User Exit Procedures
Parsing Algorithms
“Job Received Message” Parsing Algorithm
The algorithms used by NRJE to parse JES2 or JES3 “Job Received”
console messages are shown below. Output variables are
JobNumber
,
ReaderNumber
, and
JobName
.
JES2 Algorithm
scan buffer for host'command'char;
if found and host'command'char followed by "HASP100" then begin
scan from buffer(0) for keyword "JOB"
skip trailing blanks;
move to
JobNumber
variable while numeric;
skip all blanks trailing "HASP100" string;
move 8 characters to
JobName
variable;
scan from jobname'position for period;
skip two characters and assign
ReaderNumber
variable;
end;
JES3 Algorithm
begin
scan for "IAT6101";
if found scan for "JOB";
if found skip trailing blanks;
move to
JobNumber
while numeric;
scan for string " IS ";
skip trailing blanks;
move to
JobName
for 8 characters;
ReaderNumber
:= 0; ! They are not in JES3 messages.
end;
NOTE
If a “Job Received” message algorithm detects an IAT6101 message,
NRJE checks each active reader for a match with
JobName
to associate
the
JobNumber
with the correct job. If two jobs are active on two
readers at the same time with the same
JobName
, correct output
routing cannot be guaranteed.
VSE/Power
Power does not send “Job Received” messages.
Banner Decode Parsing Algorithms
The algorithms used by NRJE to parse JES2 output banner pages are
shown below. JES3 obtains host job numbers from the spin number
field of the PDIR. No attempt is made by NRJE to decode output
banners from VSE/POWER.