Page 1 of 1

BPXBATCH word count

PostPosted: Sat Nov 20, 2010 4:47 pm
by Ananth13
Hi, I am trying to get word count for the file which is available in the unix and my JCL is below, After I execute this job, the STDOUT file has 0 0 0 as value.
I need help from the forum.. Thanks.

//JS10 EXEC PGM=BPXBATCH,PARM='sh wc' OUTHFS
//OUTHFS DD PATHOPTS=(ORDONLY),
// PATHMODE=(SIRWXU,SIRWXG),
// PATH='/wwwwwwww/aaa/bbbbbbbbb/dddddd/data/xyz'
//STDERR DD DSN=abc.xyz.data,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(TRK,(160,0),RLSE),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=0,DSORG=PS)
//STDOUT DD DSN=abc.wer.data2,
// DISP=(New,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(TRK,(160,0),RLSE),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=0,DSORG=PS)
//SYSOUT DD SYSOUT=*
//SYSTSIN DD DUMMY
//SYSTSPRT DD SYSOUT=*
/*

Re: BPXBATCH word count

PostPosted: Mon Nov 22, 2010 8:01 am
by Robert Sample
Have you tried:
//JS10 EXEC PGM=BPXBATCH,PARM='sh wc /wwwwwwww/aaa/bbbbbbbbb/dddddd/data/xyz'