Re: closing unit=5 and unit=6 and print *
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 29 Aug 2006 16:41:16 +0000 (UTC)
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
.
- References:
- closing unit=5 and unit=6 and print *
- From: Dylan Sung
- Re: closing unit=5 and unit=6 and print *
- From: David Flower
- closing unit=5 and unit=6 and print *
- Prev by Date: Re: How to USE modules in a different directory?
- Next by Date: Re: closing unit=5 and unit=6 and print *
- Previous by thread: Re: closing unit=5 and unit=6 and print *
- Next by thread: Re: closing unit=5 and unit=6 and print *
- Index(es):
Relevant Pages
|