The TYPE and PRINT statements transfer output data from internal storage to external records that are sequentially accessed.
TYPE and PRINT statements take the same forms, which can be any one of the following:
TYPE f[,iolist] PRINT f[,iolist] TYPE *[,iolist] PRINT *[,iolist] TYPE n PRINT n
The control-list parameters are f, * (or FMT=*), and n. The I/O list parameter is iolist.
The TYPE and PRINT statements function like formatted sequential WRITE statements with one important exception: a formatted sequential TYPE or PRINT statement can never be used to transfer data to user-specified logical units.
In the following example, the PRINT statement writes one record to the implicit output device. The record has four fields of character data.
CHARACTER*16 NAME, JOB PRINT 400, NAME, JOB 400 FORMAT ('NAME=',A,'JOB=',A)