IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to use STDPARM with df command


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
maxsubrat

Active User


Joined: 27 Feb 2008
Posts: 110
Location: india

PostPosted: Fri May 04, 2018 7:57 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri May 04, 2018 8:18 pm
Reply with quote

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
View user's profile Send private message
maxsubrat

Active User


Joined: 27 Feb 2008
Posts: 110
Location: india

PostPosted: Fri May 04, 2018 8:28 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri May 04, 2018 8:51 pm
Reply with quote

Quote:
write requested report for /z file system ONLY.
So use
Code:
df -S /z
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
View user's profile Send private message
maxsubrat

Active User


Joined: 27 Feb 2008
Posts: 110
Location: india

PostPosted: Fri May 04, 2018 8:56 pm
Reply with quote

Thanks a lot Robert. It's working fine now.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Mon May 07, 2018 7:24 pm
Reply with quote

I had a hard time starting to work on our USS until I found these publications.

the syscall commands: Using REXX and zOS UNIX System Services
the unix commands: z/OS UNIX System Services Command Reference

(Not limited to these two...)
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts LTJ command CA Products 4
No new posts Query on edit primary command CLIST & REXX 5
Search our Forums:

Back to Top