|
The SWSFRED FunctionRelated Topics
SWSFRED is a high level function used to retrieve a block of data from files sent to the server in a Post operation. A file can be retrieved in either EBCDIC or ASCII. The attributes of the file in effect at the time of the SWSFRED call will determine how the data is returned. The attributes of the file can be:
SWSFRED SyntaxThe SWSFRED function takes two arguments. The invocation format for SWSFRED is: Z = SWSFRED(file, length)
Return ValuesSWSFRED always returns a character string representing the returned data. SWSFRED returns a string of length zero to indicate end-of-file. The SWSFRED operation is logged to the Server's wrap-around trace file with the arguments and resulting return data.
ExampleThis call will read a block of data up to 8000 bytes long.
|