Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to use STDPARM with df command

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
maxsubrat

New User


Joined: 27 Feb 2008
Posts: 92
Location: india

PostPosted: Fri May 04, 2018 7:57 pm    Post subject: How to use STDPARM with df command
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: 8405
Location: Dubuque, Iowa, USA

PostPosted: Fri May 04, 2018 8:18 pm    Post subject: Reply to: How to use STDPARM with df command
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

New User


Joined: 27 Feb 2008
Posts: 92
Location: india

PostPosted: Fri May 04, 2018 8:28 pm    Post subject:
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: 8405
Location: Dubuque, Iowa, USA

PostPosted: Fri May 04, 2018 8:51 pm    Post subject: Reply to: How to use STDPARM with df command
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

New User


Joined: 27 Feb 2008
Posts: 92
Location: india

PostPosted: Fri May 04, 2018 8:56 pm    Post subject:
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: 1303
Location: Israel

PostPosted: Mon May 07, 2018 7:24 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Query regarding STOP REGION XX ABDU... ashek15 IMS DB/DC 11 Fri Oct 19, 2018 10:13 am
No new posts SDSF - SJ command not working properly mistah kurtz IBM Tools 5 Tue Jun 26, 2018 2:33 pm
No new posts Need help on TDQ load from file using... subratarec CICS 4 Wed Jun 13, 2018 11:32 pm
No new posts Rexx command to open an another text ... Bharath Vikraman PC Guides & IT News 7 Sat May 12, 2018 4:34 pm
No new posts IBM Pcomm macro startmacro command do... JGregoire IBM Tools 0 Wed May 09, 2018 12:16 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us