On Thu, 3 Apr 2014 22:45:52 +0200, Bernd Oppolzer wrote:

>IIRC, there is not only the "standard assignment" of
>
>stdin == DD:SYSIN
>stdout == DD:SYSPRINT
>stderr == DD:CEEMSGS
> 
Long ago, when I was a novice to MVS, and in a different language,
my mentor impelled such choices, at least the first two.  Looking
back, I now believe Simpler Is Better, and the choices should have
been (as BPXBATCH chose):

stdin == DD:STDIN
stdout == DD:STDOUT
stderr == DD:STDERR

... don't inflict MVS-think on other cultures.

>but furthermore you can, like on Unix and Windows platforms,
>redirect stdin and stdout using the < and > characters on the JCL parm ...
>at least if you have some compile or run time options properly set ...
>
>that is:
>
>//   EXEC SAMPLE,PARM='/  <DD:INPUT >DD:OUTPUT '
> 
BPXWUNIX performs splendidly mapping the standard descriptors
to arbitrary DDNAMEs (although many programmers are accustomed
to using only Rexx compound variables).  I wonder how it does it?
The streams are not buffered; I can assign them to different SYSOUT
data sets and monitor them with SDSF in real time.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to