SET FILE
| COBOL |
Java |
| EXEC CICS SET FILE |
ibmCics.setFile |
Syntax
ibmCics.setFile(new SetFileOptions()
.fileName(<FileName>)
[.setFileOption(EnumSet.of(<SetFileOption>))]
[.openStatus(<OpenStatus>)]
[.enableStatus(<EnableStatus>)]
[.noHandle(true)]
);
Parameters
<FileName>
The name of the file.
<SetFileOption>
One or more file options as EnumSet, see the SetFileOption enum for all available options. Includes OPEN, CLOSED, SHARE, ENABLED, READABLE, ADDABLE and more.
<OpenStatus>
Set whether the file should be open or closed. Can be set to the cvda value for 'OPEN' (18) or 'CLOSED' (19).
<EnableStatus>
Set if programs can access the file. Can be set to the cvda value for 'ENABLED' (23) or 'DISABLED' (24).
noHandle
Optional Boolean. If set to true, exceptions created by this command will be ignored.
Examples
| COBOL |
Java |
EXEC CICS
SET FILE('INVOICE')
OPEN
ENABLED
END-EXEC.
|
ibmCics.setFile(new SetFileOptions()
.fileName("INVOICE")
.setOption(EnumSet.of(SetFileOption.OPEN, SetFileOption.ENABLED))
);
|