Problem:
How to compile from a command line, using the NoQuery Compiler directive to suppress the prompt for any missing copy files.
Resolution:
INTRODUCTION
============
When compiling from a command line, use the NoQuery Compiler directive to suppress the prompt for any missing copy files. An 8-S error will be reported:
* 8-S********************
** Unknown COPY file MYBOOK.CPY specified
* Checking complete - errors found
but the compile will continue to completion.
SOURCE FILES:
=========
Program Files Description
---------------- -----------------------------------------------------------
CblMain.cbl Example program using a copy statement to retrieve a COBOL copy book.
Batch File:
---------------- -----------------------------------------------------------
Compile.bat Example batch file that illustrates the use of the NoQuery Compiler directive.
OPERATION:
========
From Start>Programs>Micro Focus Net Express, open a Net Express Command Prompt. Compile the test program from the command line by entering:
cobol cblmain.cbl;
Respond to the prompt by entering the character "C".
Next, execute the batch file Compile.bat and note that the missing copy book is reported, but the compilation continues.
REFERENCES:
========
cobol.dir file
----------------
Net Express Help: Click the Index tab, type "cobol.dir" in window 1, click "cobol.dir file" in window 2, click the Display button.
Compiler directives
-------------------
Net Express Help: Click the Find tab, type "compiler directives" in window 1, click "... Directives" in window 2, click "Compiler directives - alphabetical list" in window 3, click the Display button,
click "QUERY" and read the documentation.
Compiler usage
-------------------
Net Express Help: Click the Index tab, type "compiling" in window 1, click "Compiling" in window 2, click the Display button, click "Compiling from the command line" in the Topics Found dialog. Click a topic window and click the Display button in the Topics Found dialog.
==========================================================
Keywords: demonstration, sample, example, demo, query.zip
demo.ex
demo.me
demo.ne
demo.se