Re: Batch edit of large dataset - Solved

2019-03-29 Thread Jeremy Nicoll
On Fri, 29 Mar 2019, at 17:29, Paul Gilmartin wrote: > On Fri, 29 Mar 2019 12:56:59 -0400, Jeremy Nicoll wrote: > > > >In the calling exec the rc from the (ispf) edit would be checked, because > >invoking edit might have failed, eg because of spfdsn enqueues on the > >target file. In the 'producti

Re: Batch edit of large dataset - Solved

2019-03-29 Thread Paul Gilmartin
On Fri, 29 Mar 2019 12:56:59 -0400, Jeremy Nicoll wrote: > >In the calling exec the rc from the (ispf) edit would be checked, because >invoking edit might have failed, eg because of spfdsn enqueues on the >target file. In the 'production' systems I wrote the execs usually then >slept for a few sec

Re: Batch edit of large dataset - Solved

2019-03-29 Thread Jeremy Nicoll
On Fri, 29 Mar 2019, at 16:02, Paul Gilmartin wrote: > Neat! I never became proficient with the ISPF variable pool. > > Is there any restriction on the content of ISPF variables? Special > characters? Length? > Can they be delimited strings, subject to the design deficiencies of > delimited

Re: Batch edit of large dataset - Solved

2019-03-29 Thread Paul Gilmartin
On Fri, 29 Mar 2019 07:56:36 -0500, Elardus Engelbrecht wrote: >Jeremy Nicoll wrote: > >>Remember that when an ispf edit macro starts to execute you have access to >>the underlying ispf session, and indeed underlying TSO. So change the macro >>to, for example: > >>address ispexec "vget (parmin p

Re: Batch edit of large dataset

2019-03-29 Thread Paul Gilmartin
On Fri, 29 Mar 2019 02:32:04 -0500, Elardus Engelbrecht wrote: > >> INREC FINDREP=(ENDPOS=2004, >>Note : For FB fies the end position would be 2000 ( No addition of the RDW) > >Not many people understand that little 4 bytes trick for that RDW. ;-D ;-D > When I first encountered MVS, I found incl

Re: Batch edit of large dataset - Solved

2019-03-29 Thread Elardus Engelbrecht
Jeremy Nicoll wrote: >Remember that when an ispf edit macro starts to execute you have access to the >underlying ispf session, and indeed underlying TSO. So change the macro to, >for example: >address ispexec "vget (parmin parmuit) profile" Thanks for showing where to put the vget and vput com

Re: Batch edit of large dataset - Solved

2019-03-29 Thread Jeremy Nicoll
On Fri, 29 Mar 2019, at 07:24, Elardus Engelbrecht wrote: > Now, for my problem is, I have this macro (which is not working): > > ISREDIT MACRO (PARMIN PARMUIT) > ISREDIT RESET > ISREDIT CAPS OFF > ISREDIT CHANGE &PARMIN &PARMUIT ALL > ISRED

Re: [EXTERNAL] Batch edit of large dataset

2019-03-29 Thread Sankaranarayanan, Vignesh
ISPF Edit Macros in batch... ? – Vignesh Mainframe Infrastructure -Original Message- From: IBM Mainframe Discussion List On Behalf Of Elardus Engelbrecht Sent: 28 March 2019 07:52 To: IBM-MAIN@LISTSERV.UA.EDU Subject: [EXTERNAL] Batch edit of large dataset Hi to all, I've

Re: Batch edit of large dataset

2019-03-29 Thread Elardus Engelbrecht
Sri h Kolusu wrote: >You skipped over the most important Utility DFSORT. ... and I discovered it (and ICETOOL) again! ;-) (see my other thread about this matter) >It can find and REPLACE one or more strings. Here is an example. I eventually used your example I discovered in another thread y

Re: Batch edit of large dataset

2019-03-29 Thread Elardus Engelbrecht
Paul Gilmartin wrote: >>Unfortunately those IKJEFT01 commands require that the dataset lines need to >>be numbered. >Could you run ISPF Edit under IKJEFT and use its CHANGE command in an initial >macro? Thanks for asking. Eventually yes, I could do it and bypass the problem of line numbers, b

Re: Batch edit of large dataset - Solved

2019-03-29 Thread Elardus Engelbrecht
Paul Gilmartin wrote: >>But I have problems to pass the two arguments for the ISREDIT CHANGE command. >>It is easy (after lots of RTFM on KC! ;-D ) to do that interactively, but not >>in batch. >Where does the problem arise? Is it the TSO parser's meddling with delimited >strings? >ISPF Edit

Re: Batch edit of large dataset

2019-03-28 Thread Seymour J Metz
metz3 From: IBM Mainframe Discussion List on behalf of Elardus Engelbrecht Sent: Thursday, March 28, 2019 3:51 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Batch edit of large dataset Hi to all, I've got a requirement where a single line in large dataset (RECFM=VB

Re: Batch edit of large dataset - Solved

2019-03-28 Thread Seymour J Metz
:58 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Batch edit of large dataset - Solved Elardus Engelbrecht wrote: >I've got a requirement where a single line in large dataset (RECFM=VB or FB >and LRECL=) needs to be edited/changed in batch. Changed >dataset is then to be used in

Re: Batch edit of large dataset

2019-03-28 Thread Sri h Kolusu
> I've got a requirement where a single line in large dataset > (RECFM=VB or FB and LRECL=) needs to be edited/ > changed in batch. Changed dataset is then to be used in next job steps. > I have a look at the different utilities. One utility I could find > useful is the EDIT and CHANGE commands ru

Re: Batch edit of large dataset - Solved

2019-03-28 Thread Paul Gilmartin
On Thu, 28 Mar 2019 06:58:36 -0500, Elardus Engelbrecht wrote: >... >I am familiar with using ISREDIT MACRO function interactively, so I first >tried out Alan Young's example in thread 'Re: JCL sample needed' posted on 19 >Feb 2016. > >But I have problems to pass the two arguments for the ISR

Re: Batch edit of large dataset

2019-03-28 Thread Paul Gilmartin
On Thu, 28 Mar 2019 02:51:59 -0500, Elardus Engelbrecht wrote: > >I've got a requirement where a single line in large dataset (RECFM=VB or FB >and LRECL=) needs to be edited/changed in batch. Changed >dataset is then to be used in next job steps. > >Sounds easy? Interactively with TSO yes, but th

Re: Batch edit of large dataset

2019-03-28 Thread Elardus Engelbrecht
John McKown wrote: >> Groete / Greetings >In my usual "left handed" way, I will recommend using "awk" in a UNIX step to >do this. It is easiest to do if you have Co:Z installed, but it can be done >using the IBM supplied UNIX commands. Yes, IBM awk can read a z/OS sequential >dataset. I have v

Re: Batch edit of large dataset

2019-03-28 Thread John McKown
On Thu, Mar 28, 2019 at 2:52 AM Elardus Engelbrecht < elardus.engelbre...@sita.co.za> wrote: > Hi to all, > > I've got a requirement where a single line in large dataset (RECFM=VB or > FB and LRECL=) needs to be edited/changed in batch. > Changed dataset is then to be used in next job steps. > > S

Re: Batch edit of large dataset - Solved

2019-03-28 Thread Elardus Engelbrecht
Elardus Engelbrecht wrote: >I've got a requirement where a single line in large dataset (RECFM=VB or FB >and LRECL=) needs to be edited/changed in batch. Changed >dataset is then to be used in next job steps. Solved! Whew! ;-) I am familiar with using ISREDIT MACRO function interactively, so I

Re: Batch edit of large dataset

2019-03-28 Thread Ravi Gaur
Quick just in case you have PDSMAN product you can use PDSM18 utility with replace. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Batch edit of large dataset

2019-03-28 Thread Elardus Engelbrecht
Hi to all, I've got a requirement where a single line in large dataset (RECFM=VB or FB and LRECL=) needs to be edited/changed in batch. Changed dataset is then to be used in next job steps. Sounds easy? Interactively with TSO yes, but they want it to be done in a batch job. Something like c '