You are correct.   The cp manpage only says that it supports //dataset
format, but not specifically DDs.  Sorry;  I jumped to a conclusion
when I read it.

While I agree with your comments regarding the limitations of
BPXBATSL, but in this case it does work and solves the OP requirements
as I understand them.

The enhancements to BPXBATCH/SL came in 1.7, but I believe that there
are PTFs for previous releases.  See:
http://www-1.ibm.com/support/docview.wss?uid=isg1OA11699


On 9/6/07, Paul Gilmartin <[EMAIL PROTECTED]> wrote:
> On Thu, 6 Sep 2007 09:47:25 -0500, Kirk Wolf wrote:
> >
> >- //DD(MEMBER) is supported according to the cp man page.
> >
> At which release?  at 1.8, I see only:
>
>     [EMAIL PROTECTED]:128$ uname -a
>     OS/390  18.00 03 2094
>
>     [EMAIL PROTECTED]:129$ man cp | grep -i dd
>            UNIX, the end-of-line delimiter will be added (Code page IBM-1047
>            in addition, it preserves file mode, owner, and group owner, if
>            notes" in topic SHCMDDES.CP.5 for details on how to treat text 
> data.
>                 topic SHCMDDES.CP.3.2.
>                           behavior for cp" in topic SHCMDDES.CP.3.2.
>                           tagging behavior for cp" in topic SHCMDDES.CP.3.2.
>       | Member/PartitionedDat|                |                |              
>  |
>               size, the record is padded with blanks.
>               one record. The last record is padded with blanks.
>     [EMAIL PROTECTED]:130$
>
> No mention of DDNAMEs.  If I missed something, what should I have looked for?
>
> >- UID 0 requirements for BPXBATCL "SH" option don't apply to "PGM"
> >
> Of course I remember an unpleasant experience with PARM='SH ...'.
> But "PGM" fails to provide basic constructs such as looping, redirection,
> and pipes.
>
> I wonder why the restriction?  Is it because "SH" tries to run a login
> shell, and something in /etc/profile requires spawning an authorized process?
> What if I try:
>
>     EXEC PGM=BPXBATSL,PARM='PGM /bin/sh -c "date | wc"'
>
> ???  I suspect that lexical limitations in BPXBATSL's parsing of its PARM
> would quickly trip me up.
>
> -- gil
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
> Search the archives at http://bama.ua.edu/archives/ibm-main.html
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to