Chapter Contents |
Previous |
Next |
Handling Files |
Any open spool files are automatically closed by the
EXEC CICS SYNCPOINT command. To avoid problems, issue the
fclose
function for any
open spool file before issuing this command. Consult the IBM documentation
on the CICS interface to JES for more details.
JES Spool Filename Specification |
stdout
to a userid at another node:
char *_stdonm = "spl:sascuser.vm"; printf("hello from CICS");
FILE *fptr; fptr = fopen("spl:cicstest.*", "rb"); len = afread(record, 1, 255, fptr);
OS/390
:
fptr = afopen("spl:intrdr.OS/390.a", "w", "seq", "recfm=f,reclen=80"); fprintf (fptr, "%s\n", "//BR14 JOB (acct),pgmr_name"); fprintf (fptr, "%s\n", "// EXEC PGM=IEFBR14"); fprintf(fptr, "%s\n", "/*EOF");
Specifying Amparms for JES Spool Files |
Note:
The defaults
of
recfm=v
/
reclen=255
allow a program to read and write equal-length records just
as easily as variable-length records.
Consider the following points when using this amparm:
recfm=f
is specified, the program expects records
of equal length.
recfm=v
is specified, the program expects records
of variable length.
recfm=u
is treated as
recfm=v
.
Consider the following points when using this amparm:
reclen=x
is supported,
which means that records can be of any length up to the CICS maximum.
reclen=x
and
recfm=f
.
Block size can be specified, but it is ignored for JES spool
files.
Default values for JES spool file characteristics amparms are
recfm
|
v |
reclen
|
255 |
blksize
|
not applicable |
Support for CICS File Control |
In the ISSUE
REPLACE, ISSUE ADD, ISSUE ERASE, and ISSUE NOTE
commands, if the record identification field is a relative record number,
the RIDFLD option is expected to be an
unsigned int
type. Otherwise, the
option is expected to be a
pointer
type (presumably a pointer to a key).
For the READ, WRITE, DELETE, STARTBR, READNEXT, READPREV,
and RESETBR commands, the RIDFLD option is generally expected to be a
pointer
type, that is, a pointer to a key.
Each command has a set of options that, if used, specifies
whether the argument will be either a relative byte address or a relative
record number and, therefore, will be an
unsigned int
type. Here's the list
of options for each command:
Command | Options |
---|---|
READ | RBA, RRN, GENERIC, GTEQ |
READNEXT | RBA, RRN |
READPREV | RBA, RRN |
RESETBR | RBA, RRN |
STARTBR | RBA, RRN |
WRITE | RBA, RRN, MASSINSERT |
Note:
When the MASSINSERT option of
the WRITE command is used, the RIDFLD option is expected to be of type
void *
, rather than of the
unsigned int
type.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.