Version 6.3.13 for Windows
 —  Web Technology  —

Check Resource

Subroutine Name Executable Example Viewable Example Resources

W3CHECK-RESOURCE

E3RESOUR

E3RESOUR

E3SAVE.HTML

Description

Check if a read a resource file exists at the given library. With the create flag, a new empty resource can be created if one does not already exist. If no library is specified, use the current library.

Parameters
1 W3LIBRARY    (A8) BY VALUE OPTIONAL  /* i /o : Natural Library ID
1 W3FILE       (A) DYNAMIC BY VALUE    /* i /m : File Name
1 W3CREATE     (L) BY VALUE            /* i /m : If true, create new file
1 W3PATH       (A) DYNAMIC             /*  o/m : Resource path
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.

How To Invoke
PERFORM W3CHECK-RESOURCE W3LIBRARY W3FILE W3CREATE W3PATH
PERFORM W3CHECK-RESOURCE " " 'test.html" TRUE W3PATH
PERFORM W3CHECK-RESOURCE 1x 'test.html" TRUE W3PATH
PERFORM W3CHECK-RESOURCE W3LIBRARY W3FILE W3CREATE W3PATH W3RESOURCE
Restriction:

Check Resource is only available on Natural for Windows and UNIX supporting non-natural files/resources.

Top of page