|
Hex Dec Type/Val Lng Label (dup) Comments
---- ---- --------- ---- -------------- --------
0000 0 Structure FSCBD File System Control Block
0000 0 Character 8 FSCBCOMM File system command (e.g. RDBUF)
0008 8 Character 18 FSCBFILE File ID (name, type, and mode)
0008 8 Character 16 FSCBFNFT File name and file type
0008 8 Character 8 FSCBFN File name
0010 16 Character 8 FSCBFT File type
0018 24 Character 2 FSCBFM File mode (letter and number)
0018 24 Character 1 FSCBFML File mode letter
0019 25 Character 1 FSCBFMN File mode number
001A 26 Signed 2 FSCBITNO Relative record number to be
accessed on FSREAD and FSWRITE
(applies only to the non-extended
FSCB)
001C 28 Address 4 FSCBBUFF Address of the input/output
buffer for FSREAD and FSWRITE
(also used on calls to DMSSTT for
the FST address)
0020 32 Signed 4 FSCBSIZE Length (in bytes) of the
input/output buffer (also used to
return the record length on
FSOPEN)
0024 36 Character 2 FSCBFV Record format and first flag byte
0024 36 Character 1 FSCBRECF Record format - F or V
0025 37 Bitstring 1 FSCBFLG First flag byte
'FSCBFLG' flag byte definition
1... .... FSCBTHEX X'80' Space threshold exceeded
(SFS only)
.1.. .... FSCBITAV X'40' Item available (CDF only)
..1. .... FSCBEPL X'20' Extended PLIST (FORM=E)
...1 .... FSCBMSG X'10' MSG=YES on FSSTATE or
FSOPEN
.... 1... FSCBSTW X'08' STATEW specified on FSSTATE
.... .1.. FSCBCACY X'04' CACHE=YES specified
.... ..1. FSCBCACN X'02' CACHE=NO specified
.... ...1 FSCBRCAV X'01' Previous record null (CDF
only)
0026 38 Signed 2 FSCBNOIT Number of records to be accessed
on FSREAD and FSWRITE (applies
only to the non-extended FSCB)
0026 38 Bitstring 1 FSCBFLG2 Second flag byte
'FSCBFLG2' flag byte definition (FORM=E only)
1... .... FSCBNMAC X'80' NOMSG=ACTIVE specified on
FSOPEN
.1.. .... FSCBNMNF X'40' NOMSG=NOTFOUND specified on
FSOPEN
..1. .... FSCBNMOS X'20' NOMSG=OSDOS specified on
FSOPEN
0027 39 Character 1 FSCBOTYP OPENTYP value
'FSCBOTYP' Values (FORM=E only)
.... .... FSCBTNON X'00' OPENTYP=NONE specified
000000D9 FSCBTRD C'R' OPENTYP=READ specified
000000E6 FSCBTWR C'W' OPENTYP=WRITE specified
000000D5 FSCBTNEW C'N' OPENTYP=NEW specified
000000E7 FSCBTREP C'X' OPENTYP=REPLACE specified
0028 40 Signed 4 FSCBNORD Number of bytes actually read on
FSREAD
'FSCBFST' is returned on FSOPEN. Its value is based on
the OPENTYP specified and whether or not the file exists.
Note that a non-extended format FSCB (FORM=E not specified)
implies OPENTYP=NONE. The values are as follows:
File doesn't exist . FSCBFST=A(0)
File exists:
Not FORM=E FSCBFST=A(Copy of 40 byte FST)
OPENTYP=NONE . FSCBFST=A(Copy of 64 byte FST)
OPENTYP=READ . FSCBFST=A(Copy of 64 byte FST)
OPENTYP=WRITE FSCBFST=A(Copy of 64 byte FST)
OPENTYP=REPLACE . FSCBFST=A(-1)
OPENTYP=NEW Error, FSCBFST is unchanged
0028 40 Address 4 FSCBFST Address of a copy of the FST
returned on FSOPEN
The following fields apply only to the extended form FSCB
(i.e., FORM=E was specified).
002C 44 Signed 4 FSCBAITN Relative record number to be
accessed on FSREAD and FSWRITE
(also referred to as the
"alternate item number")
0030 48 Signed 4 FSCBANIT Number of records to be accessed
on FSREAD and FSWRITE (also
referred to as the "alternate
number of items")
0034 52 Signed 4 FSCBWPTR Extended write pointer (input on
FSPOINT FORM=E, output on FSOPEN)
0038 56 Signed 4 FSCBRPTR Extended read pointer (input on
FSPOINT FORM=E, output on FSOPEN)
0000003C FSCBLNBY *-FSCBD Length (in bytes) of the
extended FSCB
| |