Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

bs2file - set BS2000 file attributes (BS2000)

&pagelevel(4)&pagelevel

bs2file defines the BS2000 file attributes of the file which is to be transferred.
bs2file is mapped to the BS2000 FILE command.

Syntax


bs2file[ -h] file,operand_list

-h

Prints out the command syntax with an explanation of the options.

file

Fully qualified file name in BS2000. The file attributes of this file are defined and used in the associated bs2cp command.

Specifying "\*" ("\" is used for quoting) instead of a file name indicates that the settings in the bs2file command are valid for all files of the next bs2cp command. The file attributes then apply to the file(s) specified in the bs2cp command.

If a fully qualified file name is specified, the bs2file entry only loses its validity if the file attributes are successfully analyzed in a bs2cp call when the file names are identical. If an asterisk (*) is specified, the bs2file entry loses its validity when the bs2cp command terminates.

operand_list

List of file attributes. The format of the operand_list must correspond to the format of the FILE command (BS2000).
You may not use the operand "LINK=" in the FILE command.

Hint

If you issue multiple bs2file commands for a file then only the last attributes to be specifiedare valid.

In the case of ISAM files, only the values KEYPOS=5 and KEYLEN=8 are supported for the key position and key length respectively.

Error

Error messages of the FILE command

Example

The BS2000 file doccopy is to be set up as a PAM file.

$ bs2file doccopy,fcbtype=pam

See also

bs2cp, ftyp