View previous topic :: View next topic
|
Author |
Message |
maxsubrat
Active User
Joined: 27 Feb 2008 Posts: 110 Location: india
|
|
|
|
Can someone please correct me whether I am using correct syntax with df ?
000001 //JOB11 JOB 1,NOTIFY=&SYSUID
000002 //REMOVE EXEC PGM=BPXBATCH,PARM='SH rm /z/t10981/mounts'
000003 //******************************************************
000004 //UNIX EXEC PGM=BPXBATCH
000005 //STDOUT DD DSN=&SYSUID..SK.OUTPUT(MST),DISP=SHR
000006 //STDERR DD SYSOUT=*
000007 //STDIN DD DUMMY
000008 //STDENV DD DUMMY
000009 //STDPARM DD *
000010 SH
000011 df -S
000012 /*
Thanks |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
That depends upon what you want the df command to do. If you wanted to display SMF accounting fields, then df -S will do so. If you wanted to do something else, then df -S is probably not the command to do that. Are you having some issue specifically (if so, what issue?) or are you just asking a general question? |
|
Back to top |
|
|
maxsubrat
Active User
Joined: 27 Feb 2008 Posts: 110 Location: india
|
|
|
|
Thanks for the reply.
Yes, I just want to display the below messages...
My requirement is to process df command with appropriate operand to write requested report for /z file system ONLY.
If I run the above job, i am getting rc=1
I am not 100% sure whether the use of 'df -S' codes (line no. 11 in above jcl) are correct ?
Mounted on Filesystem Avail/Total Files Status
Number of reads : 0
Number of writes : 0
Number directory I/O blocks : 0
Number read I/O blocks : 40
Number write I/O blocks : 0
Total number bytes read : 0x0 0
Total number bytes written : 0x0 0
Thanks |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
write requested report for /z file system ONLY. |
So use
Try it under OMVS first to make sure you're getting what you expect before you attempt to run it in batch. |
|
Back to top |
|
|
maxsubrat
Active User
Joined: 27 Feb 2008 Posts: 110 Location: india
|
|
|
|
Thanks a lot Robert. It's working fine now. |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
Back to top |
|
|
|