02.07.2013 Views

Type III C lass A Program

Type III C lass A Program

Type III C lass A Program

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PL/I PROGRAMMING<br />

COMPILATION NOTES:<br />

a. The main procedure must be<br />

OPTIONS(MAIN) option stated.<br />

b. Compiler diagnostics<br />

not attempt to execute<br />

successfully.<br />

compiled with the<br />

must be examined carefully -- do<br />

a program that has not compiled<br />

c. Conversion subroutines are noted as "warnings" in the<br />

compiler diagnostics. This does not indicate an error and<br />

should not affect the execution of the procedure; it merely<br />

notifies the user of costly conversions.. The warnings may be<br />

suppressed by the FE option.<br />

d. The compiler produces a file "name TEXT Pi" from the<br />

input file "name PLI Pi", except in the event of "terminal"<br />

compiler errors.<br />

PL/I LIBRARY<br />

CMS uses the PL/I Version 4 Subroutine Library. The PL/I<br />

library is called PLILIB TXTLIB. Three additional<br />

subroutines have been added to the library: IHECMS, lHECLOK,<br />

and IHEFILE.<br />

LOADING A PL/I PROGRAM<br />

Before loading a PL/I program, it is necessary to designate<br />

that the PL/I library is to be used (the default library is<br />

the FORTRAN library called SYSLIB). This may be done<br />

immediately before loading. or automatically at login via<br />

the PROFILE EXEC, by the following eMS command:<br />

GLOBAL TXTLIB PLILIB<br />

warning: If the loader indicates that<br />

IBExyz are undefined. the PL/I library<br />

designated.<br />

EXECUTING A PL/I PROGRAM<br />

names of the form<br />

was not correctly<br />

A PL/I program may be loaded and executed in a similar<br />

manner to all the other language processors. The only<br />

restriction is that the START entryname, if used!, must be<br />

IHECMS which is a special initialization routine that<br />

transfers control to the user·s main program. This routine<br />

is automatically invoked under all other circumstances,.<br />

The three common techniques are<br />

342<br />

LOAD progl (XEQ)<br />

LOAD prog1 <br />

START<br />

PL/I <strong>Program</strong>ming

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!