Thanks for your help. I am able to run omvs command using  JCL now.

Regards
Venkat

On Tue, Aug 15, 2017 at 7:47 PM, John McKown <[email protected]>
wrote:

> On Tue, Aug 15, 2017 at 11:39 AM, Nims,Alva John (Al) <[email protected]>
> wrote:
>
> > Gil,
> >
> > Will this still work if the file does not exist when the IEFBR14 step is
> > run?
> >
>
> ​Probably should have the OCREAT in the PATHOPTS. I.e.
> ​​
> //STEP  EXEC  PGM=IEFB14
> //FILE   DD   PATHOPTS=
> ​(​
> OCREAT,RDWR),PATHDISP=DELETE,
> //  PATH='/u/venkat/test_01.txt'
>
>
>
> > Al Nims
> > Systems Admin/Programmer 3
> > UFIT
> > University of Florida
> > (352) 273-1298
> >
> > -----Original Message-----
> > From: IBM Mainframe Discussion List [mailto:[email protected]] On
> > Behalf Of Paul Gilmartin
> > Sent: Tuesday, August 15, 2017 11:08 AM
> > To: [email protected]
> > Subject: Re: OMVS Command in JCL
> >
> > On Tue, 15 Aug 2017 08:32:34 +0300, venkat kulkarni wrote:
> > >
> > >OSHELL
> > >               {
> > >      echo '!rm -r /u/venkat/test_01.txt' ; +
> > >      echo '!rm -r /u/venkat/test_01.txt'   ; }
> > >
> > >Please suggest, if any changes in this JCL is required to make this
> > >full process work.
> > >
> > I'd suggest as an easier alternative:
> >
> > ​​
> > //STEP  EXEC  PGM=IEFB14
> >     //FILE   DD   PATHOPTS=ORDWR,PATHDISP=DELETE,
> >
> > ​​
> > //  PATH='/u/venkat/test_01.txt'
> >
> > -- gil
> >
> > ----------------------------------------------------------------------
> > For IBM-MAIN subscribe / signoff / archive access instructions, send
> email
> > to [email protected] with the message: INFO IBM-MAIN
> >
> > ----------------------------------------------------------------------
> > For IBM-MAIN subscribe / signoff / archive access instructions,
> > send email to [email protected] with the message: INFO IBM-MAIN
> >
>
>
>
> --
> If you look around the poker table & don't see an obvious sucker, it's you.
>
> Maranatha! <><
> John McKown
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to