Re: closing unit=5 and unit=6 and print *



David Flower <DavJFlower@xxxxxxx> wrote:
(snip)

It is conventional that unit 5 is used as standard input, and unit 6 as
standard output, and that they are automatically opened as such at the
start of the program.

PS In the late 1960s, I programmed an IBM 360/95 which used units 1 & 2
(or was it 2 & 3) for standard input and output, so the convention was
not universal

For OS/360 and successors the unit numbers are specified at SYSGEN
time. One module of the Fortran library is generated as part
of SYSGEN, including those numbers. In addition, the appropriate
DD statements need to be added to the cataloged procedures.

The popular, and I believe default is 5 for SYSIN, 6 for SYSOUT=A
(usually a line printer) and 7 for SYSOUT=B, (usually a card punch).

As with unix redirection, the actual output device can be changed
at run time with the appropriate JCL.

-- glen
.



Relevant Pages

  • Re: GD not working
    ... [snip very lengthy discussion about a problem that was solved, ... Not nonsense characters. ... the standard output channel of your application, ... Trading Post Australia | where there ain't no crops. ...
    (comp.lang.perl.modules)
  • Re: Why is a nohup.out file created for this command?
    ... I demand that LordSky may or may not have written... ... tion if standard output is a termi- ... "if standard output is a terminal". ...
    (comp.os.linux.misc)