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.

READY THE PRINTER.<br />

I/O ERROR ON PRINTER. • PRINT' OPTION CANCELLED.<br />

A 'LISTING'· DISI< FILE WILL BE CREATED.<br />

If either appears at the terminal" notify_ the responsible<br />

system programmer.<br />

Examples:<br />

a. see Figure 29<br />

A file. FAC FORTRAN P5, is to be compiled. No options are<br />

specified, so the set of default options govern the<br />

compilation. At statement OOQ1 the compiler detects three<br />

errors at the points indicated by the $'s in the succeeding<br />

line. Error 01) refers to the left $, error 02) to the $ in<br />

the center, error 03) to the $ under the 5. (The number in<br />

the 'On)' being the ordinal occurance of the error).<br />

Explanations of the error codes are found in the rEM<br />

System/360 Operating system FORTRAN IV (G and H)<br />

Proqrammer·s Guide. CMS cancels the cowpilation and supplies<br />

the error code E(OOOOS).<br />

fortran fac<br />

0041 READE (5,177) ANS(I)<br />

$ $ $<br />

01) IEY0021 LABEL 02) IEY0041 COMMA 03)<br />

IEY0221 UNDEFINED LABEL<br />

771<br />

E(OOOOS); T=5.42/5.98 11.40.56<br />

Figure 29. FORTRAN compilation with errors<br />

h. see Figure 31<br />

The same file as in the above example is to be compiled, but<br />

the SOURCE. MAP,. and NOLIST options are specified.. Assume<br />

that the errors flaqged above have been corrected. The file<br />

compiles correctly this time.<br />

fortran fac (source map nolist )<br />

Ri T=5.75/6.27 11.44.57<br />

Figure 31. FORTRAN compilation with options<br />

c. see Figure 32<br />

Three files are to be compiled: FAC FORTRAN P5, TEST FORTRAN<br />

P5, and PRACTICE FORTRAN P5. No errors are detected during<br />

any of the compilations. Maps of variables are included in<br />

each of the three LISTING files, which are automatically<br />

printed offline. and erased from the disk.<br />

FORTRAN 325

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

Saved successfully!

Ooh no, something went wrong!