Subroutine Name | Executable Example | Viewable Example | Resources |
---|---|---|---|
W3READ-RESOURCE |
E3RESOUR |
E3RESOUR |
E3SAVE.HTML |
Read a resource file from the given library into a dynamic variable. If no library is specified, use the current library.
Use together with
W3APPLY-XSLT
for template
processing.
1 W3LIBRARY (A8) BY VALUE OPTIONAL /* i /o : Natural Library ID 1 W3FILE (A) DYNAMIC BY VALUE /* i /m : File Name 1 W3DYN (A) DYNAMIC /* o/m : Read Resource 1 W3RESPONSE (I4) OPTIONAL /* o/o : Response
If the W3RESPONSE
parameter is not specified, the Web
Interface error processing is triggered if an error occurs. If the
W3RESPONSE
parameter is specified, the parameter contains the
Natural message number if an error occurred, or zero on success.
PERFORM W3READ-RESOURCE W3LIBRARY W3FILE W3DYN PERFORM W3READ-RESOURCE W3LIBRARY W3FILE W3DYN W3RESPONSE
Load Resource is only available on Natural for Windows and UNIX supporting non-natural files/resources. Internally it uses workfile 12.