Last active
April 13, 2020 21:59
-
-
Save Dreller/8fce9cc4dc531f72748d30aef8f532e4 to your computer and use it in GitHub Desktop.
VOC: Quickly compile the same program
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PA | |
* This paragraph will compile a program and propose to run it. | |
* Author: dreller2034, Apr 13 2020. | |
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
* Change the @PGMLIB to set the file which contains the program source. | |
SET @PGMLIB "DEVCORE.PGM" | |
* Change the @PGMNAME to set the program file to compile. | |
SET @PGMNAME "DC.CREATE.FILE.SUBR" | |
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
CLR | |
DISPLAY - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
DISPLAY C O M P I L E R | |
DISPLAY - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
DISPLAY User : <<@LOGNAME>> | |
DISPLAY Library: <<@PGMLIB>> | |
DISPLAY Program: <<@PGMNAME>> | |
DISPLAY Account: <<@ACCOUNT>> | |
DISPLAY - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
DISPLAY | |
BASIC <<@PGMLIB>> <<@PGMNAME>> | |
IF <<@SYSTEM.RETURN.CODE>> EQ 1 THEN GO 500 | |
DISPLAY | |
DISPLAY - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
DISPLAY * Failed to compile * | |
STOP | |
500: | |
DISPLAY | |
DISPLAY - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
IF <<I3,Run program (Y/N) ?>> # "Y" THEN STOP | |
CLR | |
RUN <<@PGMLIB>> <<@PGMNAME>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment