|
The SWSFSET FunctionRelated Topics
SWSFSET is a high level function used to modify file attributes for files sent to the server in a Post operation. File attributes can be examined using the built-in variables WWW.FILE.N.FILENAME, WWW.FILE.N.HTTP_CONTENT_LENGTH, WWW.FILE.N.NAME, WWW.FILE.N.HTTP_CONTENT_TYPE, WWW.FILE.N.TOEBCDIC, and WWW.FILE.N.FLAGS.
These attributes can be changed with the SWSFSET function, but this will NOT change the build-in variable values.
SWSFSET SyntaxThe SWSFSET function takes three arguments. The invocation format for SWSFSET is: Z = SWSFSET(file, attribute, value)
Return ValuesSWSFSET always returns a numeric value. A zero return value indicates a successful call. A nonzero return value indicates a failure. The SWSFSET operation is logged to the Server's wrap-around trace file with the arguments and resulting return value.
ExampleThe first call will change the translate table to "ENU " for US-English translation. The second call will force translation to take place. Subsequent logic would process the files.
|