Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

FPAMSRV

The FASTPAM access method (like DIV) uses its own parameter list, rather than the TU FCB for passing parameters.
This FPAMSRV(I) parameter list includes - among others - the
LARGE_FILE=*FORBIDDEN/*ALLOWED operands for the “Open files” function.

The operand controls whether the processing of large files is permitted.
The default value *FORBIDDEN prevents uncontrolled access to large files. This function is represented in the parameter list in a bit field which is preset with B'0' (ï *FORBIDDEN). The presetting with the default value *FORBIDDEN is therefore guaranteed for programs that were compiled in versions earlier than OSD-BC V5.0.

Indicating whether large files are permitted

The FPAMSRV macro, with the OPEN function and the LARGE-FILE operand, indicates whether large files are permitted.

Operation

Operands

FPAMSRV

[,FCT = *OPEN / adr / (r)]
:
[,LARGE_FILE = *FORBIDDEN / *ALLOWED / adr / (r)]
:

LARGE_FILE
specifies whether the file to be opened may become a “large” file that can exceed 32 GB in size.

Default setting:            LARGE_FILE = *FORBIDDEN

With the form MF=L, only direct specification is permitted.

= *FORBIDDEN
Default setting: The file may not become a “large file”.

= *ALLOWED
The file may become a “large file”.

= adr / (r)
The address of a field that is 1 byte in length and contains the value for LARGE_FILE or the register that contains the value.

An additional return code displays information about the execution of the macro with regard to large files:

X'cc'

X'bb'

X'aaaa'

Explanation

X'00'

X'01'

X'0015'

The function was not performed.
Invalid specification for LARGE_FILE