Chapter Contents |
Previous |
Next |
Handling Files |
CC
is any ASA carriage control (if the file is defined
as
recfm=a
).
For high-level programming languages running on CICS,
the standard files (
stderr
and
stdout
) are usually directed to extrapartition
transient data queues. Attempts to read from
stdin
will fail unless
the default name is redirected.
Positioning Transient Data Queues |
Specifying Transient Data Filenames |
File | Destination |
---|---|
stdout
|
td:saso
|
stderr
|
td:sase
|
stgrpt
|
td:sasr
|
stgrpt
is used for run-time storage
analysis and usage reports when the
=storage
run-time argument
is specified. Some examples of specifying transient data filenames follow:
printf("hello world");
f_ptr = fopen("td:logf", "a+");
f_ptr = fopen("logf", "a+"); fread(string, 1, count, f_ptr);
char *_stdonm = "td:cssl";
Amparms for Transient Data |
When using this amparm, consider these points:
recfm=f
is specified, but the file does not have fixed-length records.
recfm=v
or
recfm=u
is specified for an extrapartition file
that is opened for output but is actually an F-format file.
recfm=v
or
recfm=u
is specified for a read-only
file.
recfm=u
is ignored for intrapartition
queues and is treated as
recfm=v
for extrapartition queues.
When using this amparm, consider these points:
reclen=nnn
is specified
but the actual file's LRECL does not match this specification.
reclen=x
is not supported for transient
data queues.
reclen
specification is
compared to the value of LRECL-4 for a V-format file, not to the LRECL
itself. For a file with carriage-control characters, the
reclen
specification is compared to LRECL-1. Furthermore, extrapartition queues
(which are prefixed with four-character terminal and transaction identifiers)
are compared to LRECL-8. For example, an extrapartition VBA file with
an LRECL of 133 can have at most a
reclen
specification of
120 (120 from the application + 8 for termid/tranid + 4 for V-format control
information + 1 for carriage control).
When using this amparm, remember that if the
actual block size
of an extrapartition queue is greater than the size specified by
blksize=nnn
, a warning will be generated; otherwise, this specification
will be ignored.
For extrapartition queues, default values for file characteristics
amparms (
recfm
,
reclen
, and
blksize
) are derived from the values defined in the CICS DCT. For intrapartition
queues, the following default values are assigned to the file characteristics
amparms:
recfm
|
v |
reclen
|
480 |
blksize
|
480 |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.