Skip to main content

Demo - how to use the CBL_LOCATE_FILE call-by-name routine

  • February 15, 2013
  • 0 replies
  • 0 views

Problem:

The example program illustrates how to use the CBL_LOCATE_FILE call-by-name routine.

Resolution:

==============

INTRODUCTION

==========

The example program illustrates how to use the CBL_LOCATE_FILE call-by-name routine.

SOURCE FILES:

=============

Program Files     Description

----------------     -----------------------------------------------------------

CblMain.cbl        Example program that uses CBL_LOCATE_FILE to locate Mfnetx.exe

REQUIREMENTS:

==========

This example was created and Animated using NetExpress 3.1, Service Pack 1.

OPERATION:

=======

Check and Animate the example. Examine the variables returned by the call to the routine.

NOTES:

====

"status-code" provides an overall indication of the success or failure of the routine.

"exist-flag" indicates whether the file was or was not found.

"path-flag" indicates whether the environment variable was or was not expanded.

If you include an environment variable name in "user-file-spec" it must be prefaced with a dollar sign ($) character.

The CBL_LOCATE_FILE routine willl only handle one environment variable name, but the environment variable may include multiple paths.

==========================================================

Keywords: demonstration, sample, example, demo, cbllocatefile.zip

demo.ex

demo.ne

demo.se

Attachments:

cbllocatefile.zip

Old KB# 3991