I'm sorry, I think I misunderstood something somewhere. From what I understood, the problem was that when a remote NFS server is rebooted, you have to remount the NFS file system on z/OS, and then there needs to be a file access attempt before you can actually access the files in the file system.
So what I was suggesting was to put the touch command in a batch job after the remount command, so that the file access attempt happens right after the file system is remounted. If it's a different problem you're trying to solve, the touch command won't help. --- Kevin McKenzie External Phone: 845-435-8282, Tie-line: 8-295-8282 z/OS Test Services - Test Architect, Provisioning IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> wrote on 01/24/2019 03:57:22 PM: > From: "Watkins, Philip S." <pswatk...@co.pg.md.us> > To: IBM-MAIN@LISTSERV.UA.EDU > Date: 01/24/2019 03:58 PM > Subject: Re: NFS Mount Failure > Sent by: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> > > I am performing an unmount, touch and then mount. The mount is > successful, but my job still fails unless I browse /u/usr/xerox/ > manually first. > > //XEROXUMT EXEC PGM=IKJEFT01 DYNAMNBR=NN,PARM='COMMAND' > //SYSTSPRT DD SYSOUT=* > //SYSEXEC DD DUMMY > //SYSTSIN DD * > UNMOUNT FILESYSTEM('XEROXRAW') > /* > //STEP0001 EXEC PGM=AOPBATCH,PARM='sleep 15' > //STDOUT DD SYSOUT=* > //STDERR DD SYSOUT=* > //STDIN DD DUMMY > //TOUCH EXEC PGM=BPXBATCH,PARM='SH touch -c /u/usr/xerox/tmpfile' > //STDOUT DD SYSOUT=* > //STDERR DD SYSOUT=* > //*STDPARM DD dummy > //* > //XEROXMNT EXEC PGM=IKJEFT01 DYNAMNBR=NN,PARM='COMMAND' > //SYSTSPRT DD SYSOUT=* > //SYSEXEC DD DUMMY > //SYSTSIN DD * > MOUNT FILESYSTEM('XEROXRAW') MOUNTPOINT('/u/usr/xerox') TYPE(NFS) - > MODE(RDWR) PARM('PGCSYS:/XEROXRAW,SOFT,SOFT,VERS(3),XLAT(Y), + > CLN_CCSID(1047),SRV_CCSID(819)') > /* > > -----Original Message----- > From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On > Behalf Of Carmen Vitullo > Sent: Thursday, January 24, 2019 2:57 PM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: NFS Mount Failure > > CAUTION: This email originated from an external email domain which > carries the additional risk that it may be a phishing email and/or > contain malware. > > > that's a really easy and great option ! > I use touch to create files interactively I never thought about > using touch like that ! > > > > Carmen Vitullo > > ----- Original Message ----- > > From: "Kevin Mckenzie" <kmcke...@us.ibm.com> > To: IBM-MAIN@LISTSERV.UA.EDU > Sent: Thursday, January 24, 2019 1:44:25 PM > Subject: Re: NFS Mount Failure > > Right. touch is a standard unix command; it officially is used for > updating the access or last modified time of a file, but it's often > used sort of as a utility command in the way IEFBR14 can be used to > create a file. > > So I would think a job step like: > > //TOUCH EXEC PGM=BPXBATCH,PARM='SH touch -c /u/usr/xerox/tmpfile' > > would force USS to go see if /u/usr/xerox/tmpfile exists, and > therefore require NFS to reestablish a full connection to the > server, after you've run the automount command. The -c option tells > touch not to create a file that isn't already there, so that should > prevent any file from actually being created. I haven't tested this, > though I'm trying to get in touch with one of the NFS folks to see > if this is known/expected behavior. > > Note that case matters in the PARM statement. > --- > Kevin McKenzie > > External Phone: 845-435-8282, Tie-line: 8-295-8282 z/OS Test > Services - Test Architect, Provisioning > > IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> wrote on > 01/24/2019 12:31:15 PM: > > > From: "Watkins, Philip S." <pswatk...@co.pg.md.us> > > To: IBM-MAIN@LISTSERV.UA.EDU > > Date: 01/24/2019 12:33 PM > > Subject: Re: NFS Mount Failure > > Sent by: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> > > > > Thanks Kevin, I am trying to understand how to convert what I have to > > use BPXBATCH. > > I was not aware of the use of a "TOUCH" command. > > Any help converting would be greatly appreciated. > > > > I currently use the following on the Mainframe; > > > > MOUNT FILESYSTEM('XEROXRAW') MOUNTPOINT('/u/usr/xerox') TYPE(NFS) - > > MODE(RDWR) PARM('PGCSYS:/XEROXRAW,SOFT,SOFT,VERS(3),XLAT(Y), + > > CLN_CCSID(1047),SRV_CCSID(819)') > > > > > > > > -----Original Message----- > > From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On > > Behalf Of Kevin Mckenzie > > Sent: Thursday, January 24, 2019 11:54 AM > > To: IBM-MAIN@LISTSERV.UA.EDU > > Subject: Re: NFS Mount Failure > > > > CAUTION: This email originated from an external email domain which > > carries the additional risk that it may be a phishing email and/or > > contain malware. > > > > > > Have you thought about using BPXBATCH and something like the touch > > command to force an access of the remote file system? > > > > --- > > Kevin McKenzie > > > > External Phone: 845-435-8282, Tie-line: 8-295-8282 z/OS Test Services > > - Test Architect, Provisioning > > > > IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> wrote on > > 01/23/2019 01:11:26 PM: > > > > > From: Carmen Vitullo <cvitu...@hughes.net> > > > To: IBM-MAIN@LISTSERV.UA.EDU > > > Date: 01/23/2019 01:12 PM > > > Subject: Re: NFS Mount Failure > > > Sent by: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> > > > > > > for mounts or remounts - same here, I just run a BPXBATCH to run > > theautomount > > > > > > ---------------------------------------------------------------------- > > For IBM-MAIN subscribe / signoff / archive access instructions, send > > email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > > ________________________________ This E-mail and any of its > > attachments may contain Prince George’s County Government or Prince > > George's County 7th Judicial Circuit Court proprietary information or > > Protected Health Information, which is privileged and confidential. > > This E-mail is intended solely for the use of the individual or entity > > to which it is addressed. If you are not the intended recipient of > > this E-mail, you are hereby notified that any dissemination, > > distribution, copying, or action taken in relation to the contents of > > and attachments to this E-mail is strictly prohibited by federal law > > and may expose you to civil and/or criminal penalties. If you have > > received this E-mail in error, please notify the sender immediately > > and permanently delete the original and any copy of this E-mail and > > any printout. > > > > ---------------------------------------------------------------------- > > For IBM-MAIN subscribe / signoff / archive access instructions, send > > email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, send > email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, send > email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > ________________________________ > This E-mail and any of its attachments may contain Prince George’s > County Government or Prince George's County 7th Judicial Circuit > Court proprietary information or Protected Health Information, which > is privileged and confidential. This E-mail is intended solely for > the use of the individual or entity to which it is addressed. If you > are not the intended recipient of this E-mail, you are hereby > notified that any dissemination, distribution, copying, or action > taken in relation to the contents of and attachments to this E-mail > is strictly prohibited by federal law and may expose you to civil > and/or criminal penalties. If you have received this E-mail in > error, please notify the sender immediately and permanently delete > the original and any copy of this E-mail and any printout. > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN