EasyManuals Logo

IBM System/360 System Programmer's Guide

IBM System/360
137 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #42 background imageLoading...
Page #42 background image
Output
from
the
Accounting
Routine:
You
can
write
output
in
two
ways:
by
issuing
console
messages
or
by
using
the
standard
systerr
output.
1.
Console
messages
--
You
can
use
Write
to
Operator
(WTO)
or
Write
to
Operator
with
Reply
(WTOR)
macro-instructions.
2.
System
output
--
You
must
assemble
the
following
calling
sequence
into
your
routine.
The
contents
of
register
12
must
be
the
saThe
as
when
your
accounting
routine
was
entered,
and
register
13
must
contain
the
address
of
an
area
cf
64
full
words.
r---------T----------T-------------------------------------------------,
I Name I
Operation
I
Operand
I
t---------+-----------+-------------------------------------------------~
I I
MVC
I
36(4,12),MSGADDR
MOVE
MESSAGE
ADDRESS
AND
I
I I
MVC
I
42(2,12),MSGLEN
LENGTH
TO
SYSTEM
TABLE. I
I I L I REG15,VCONYS
BRANCH
AND
LINK
TO
MESSAGE
I
I I
BALR
I REG14,REG15 ROUTINE I
I I I I
I I I I
I
MSGADDR
I
DC
I A(MSG) I
I
MSG
I
DC
I
C'text
of
message'
I
I
MSGLEN
I
DC
I
H'two
character
length
of
~essage'
I
I
VCONYS
I
DC
I
V(IEFYS)
I
L-
________
~
___________
~
_________________________________________________
J
Exit
from
the
Accounting
Routine:
You
can
use
the
RETURN
macro-
instruction
to
restore
the
contents
of
registers
and
return
control
to
the
operating
system.
INSERTING
AN
ACCOUNTING
ROOTINE INTO
THE
CeNTROl
PROGRAM
You
can
insert
your
accounting
routine
into
the
control
prograrr
either
before
or
after
the
systere
generation
process.
In
either
caSE,
you
must
specify
that
you
have
an
accounting
routine.
This
is
done
during
the
system
generation
process
ty
using
the
ACCTRTN
option
in
the
SCHEDULR
macro-instruction.
Inserting
an
Accounting
Routine
Befcre
System
Generation
To
insert
your
accounting
routine
tefore
systerr,
generation,
you
link
edit
it
into
the
module
library
(SYS1.MODLIB)
to
replace
the
existing
ffiodule
narred
IEFACTRT.
Detailed
information
atout
using
the
linkage
editor
is
contained
in
the
putlication
IBM
System/360
Operating
System:
Linkage
Editor,
Form
C28-6538.
Inserting
an
Accounting
Routine
After
Systerr
Generation
To
insert
your
accounting
routine
after
system
generation,
you
link
edit
your
routine
into
the
IEFSTERM
and
IEFJTERM
modules
of
the
18K
scheduler;
the
IEFSTERM
and
IEFCNTRL
nodules
of
the
44K
scheduler;
and
the
IEFCNTRL
module
of
the
lOOK
scheduler.
You
will
be
replacing
the
existing
control
section
IEFACTRT
in
these
rrodules.
The
scheduler
modules
are
in
the
linkage
litrary
(SYS1.LINKLIB).
The
linkage
editor
control
statements
you
must
use
to
insert
your
accounting
routine
in
the
step
ana
job
termination
modules
of
each
scheduler
follow.
18K
Scheduler
Step
Termination
ALIAS GO,IEFYN
ENTRY
IEFSDOll
NAME
IEFSTERM(R)
Job
Termination
ALIAS
IEFZA,IEFW23SD
ENTRY
IEFZA
NAME
IEFJTERM(R)
Adding
an
Acccunting
Routine
to
the
Control
Program
41

Table of Contents

Other manuals for IBM System/360

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM System/360 and is the answer not in the manual?

IBM System/360 Specifications

General IconGeneral
BrandIBM
ModelSystem/360
CategoryDesktop
LanguageEnglish

Related product manuals