RUN

From CometWiki

(Difference between revisions)
Jump to: navigation, search
(New page: RUN Syntax: RUN program[,directory-name][,"message"] Placement: The RUN command must be the last command in the report or the last command in a report contained in a multiple-report s...)
 
Line 1: Line 1:
-
RUN  
+
 
-
Syntax:  RUN program[,directory-name][,"message"]   
+
== RUN ==
-
Placement:  The RUN command must be the last command in the report or the last command in a report contained in a multiple-report specification.   
+
-
Discussion:  The RUN command executes a program. Follow it with the name of the program you wish to run, such as:  
+
'''Syntax:''' <br> RUN program[,directory-name][,"message"]  <br>
 +
'''Placement:''' <br> The RUN command must be the last command in the report or the last command in a report contained in a multiple-report specification. <br>  
 +
'''Discussion:''' <br> The RUN command executes a program. <br> Follow it with the name of the program you wish to run, such as:  
   RUN Z,DSK
   RUN Z,DSK
   RUN QREPORTS,UTR,"ARREPORT,DSK,5000"
   RUN QREPORTS,UTR,"ARREPORT,DSK,5000"
    
    
-
As an option, you can also type the three-character name of the directory where the program is located. You may also send a message, such as a file-name or command, to the program. You must enclose the message in double quotes. The message can be any information the program is expecting, including a command file name, directory, and beginning line number as shown in the second example above. This example would run The Reporter asking to run a report named ARRPORT, located in directory DSK, and starting at line number 5000.
+
As an option, you can also type the three-character name of the directory where the program is located.<br>  You may also send a message, such as a file-name or command, to the program.<br>  You must enclose the message in double quotes.<br>  The message can be any information the program is expecting, including a command file name, directory, and beginning line number as shown in the second example above.<br>  This example would run The Reporter asking to run a report named ARRPORT, located in directory DSK, and starting at line number 5000.

Latest revision as of 10:35, 6 June 2009

RUN

Syntax:
RUN program[,directory-name][,"message"]
Placement:
The RUN command must be the last command in the report or the last command in a report contained in a multiple-report specification.
Discussion:
The RUN command executes a program.
Follow it with the name of the program you wish to run, such as:

 RUN Z,DSK
 RUN QREPORTS,UTR,"ARREPORT,DSK,5000"
 

As an option, you can also type the three-character name of the directory where the program is located.
You may also send a message, such as a file-name or command, to the program.
You must enclose the message in double quotes.
The message can be any information the program is expecting, including a command file name, directory, and beginning line number as shown in the second example above.
This example would run The Reporter asking to run a report named ARRPORT, located in directory DSK, and starting at line number 5000.

Personal tools