ECHO OFF
IF NOT %1.==. SET PDL=%1
IF %1.==. CLS
IF %1.==. TYPE \PDL\PDLLOGO.BAT
IF %1.==. PDLWHAT s 'Enter PDL source member name.'
IF %PDL%.==. GOTO  EXIT
CLS
TYPE \PDL\PDLLOGO.BAT
echo Program - %pdl%
echo .
echo Pre-compiler in progress.  Please wait ...
CALL PDLRPG1
CALL PDLRPG2
CALL PDLRPG3
PDLASK Option? 1 = RPG compile, 2 = Re-edit, press enter to quit.
IF ERRORLEVEL 3 GOTO  EXIT
IF ERRORLEVEL 2 \PDL\PDLS   %PDL%
IF ERRORLEVEL 1 \PDL\PDLRPG %PDL%
:EXIT
