Re: How to insert records using EXECIO

2008-10-22 Thread Shmuel Metz (Seymour J.)
In [EMAIL PROTECTED], on 10/19/2008 at 12:07 PM, Scott Ford [EMAIL PROTECTED] said: I thought I remembered you could insert records... And elsewhere I thought that you could continue a line after an operator, without an explicit continuation character :-( They say that memory is the second

Re: How to insert records using EXECIO

2008-10-22 Thread Scott Ford
.) Sent: Wednesday, October 22, 2008 7:29 PM To: IBM-MAIN@BAMA.UA.EDU Subject: Re: How to insert records using EXECIO In [EMAIL PROTECTED], on 10/19/2008 at 12:07 PM, Scott Ford [EMAIL PROTECTED] said: I thought I remembered you could insert records... And elsewhere I thought that you could

Re: How to insert records using EXECIO

2008-10-19 Thread Scott Ford
to insert records using EXECIO In [EMAIL PROTECTED], on 10/16/2008 at 09:11 PM, Scott Ford [EMAIL PROTECTED] said: --- Gil...here u go That code does not insert records, it appends them. Nobody claimed that you couldn't append. -- Shmuel (Seymour J.) Metz, SysProg and JOAT ISO

Re: How to insert records using EXECIO

2008-10-18 Thread Paul Gilmartin
On Thu, 16 Oct 2008 21:17:05 -0400, Scott Ford wrote: See this Share paper... http://shareew.prod.web.sba.com/client_files/callpapers/attach/SHARE_in_San_Jose/S8343WS150114.pdf Ah, the dreaded Rexx Stream I/O Function Package; I've read about it. This is worse than disappointing; it's

Re: How to insert records using EXECIO

2008-10-18 Thread Scott Ford
. -Original Message- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Paul Gilmartin Sent: Saturday, October 18, 2008 10:08 AM To: IBM-MAIN@BAMA.UA.EDU Subject: Re: How to insert records using EXECIO On Thu, 16 Oct 2008 21:17:05 -0400, Scott Ford wrote: See this Share

Re: How to insert records using EXECIO

2008-10-18 Thread Shmuel Metz (Seymour J.)
In [EMAIL PROTECTED], on 10/16/2008 at 06:22 AM, P.Sabarish Kannan [EMAIL PROTECTED] said: I have a requirement to insert some records in the beginning of a file where already some lines are existing . You can't; you need to rewrite the entire file. For classical sequential files I

Re: How to insert records using EXECIO

2008-10-18 Thread Shmuel Metz (Seymour J.)
In [EMAIL PROTECTED], on 10/16/2008 at 02:03 PM, [EMAIL PROTECTED] said: I wonder - Why is it not possible to add records to the beginning of a data set? Wouldn't it be possible for a sufficiently clever program to place the inserted records into a newly allocated area on disk, and then

Re: How to insert records using EXECIO

2008-10-18 Thread Shmuel Metz (Seymour J.)
In [EMAIL PROTECTED], on 10/16/2008 at 09:11 PM, Scott Ford [EMAIL PROTECTED] said: --- Gil...here u go That code does not insert records, it appends them. Nobody claimed that you couldn't append. -- Shmuel (Seymour J.) Metz, SysProg and JOAT ISO position; see

Re: How to insert records using EXECIO

2008-10-17 Thread Hunkeler Peter (KIUK 3)
Its alreqdy 8:30am here but it might still be too early to understand your sample. The result shown indicates that you implemented an append, which of course is equal to insert after last record. Not what the OP wanted. But why are you reading the data set in first? ALLOC with MOD followed by

Re: How to insert records using EXECIO

2008-10-17 Thread Scott Ford
List [mailto:[EMAIL PROTECTED] On Behalf Of Hunkeler Peter (KIUK 3) Sent: Friday, October 17, 2008 2:35 AM To: IBM-MAIN@BAMA.UA.EDU Subject: Re: How to insert records using EXECIO Its alreqdy 8:30am here but it might still be too early to understand your sample. The result shown indicates that you

FW: How to insert records using EXECIO

2008-10-17 Thread Scott Ford
, 2008 9:17 PM To: IBM-MAIN@BAMA.UA.EDU Subject: Re: How to insert records using EXECIO Gil, See this Share paper... http://shareew.prod.web.sba.com/client_files/callpapers/attach/SHARE_in_San_ Jose/S8343WS150114.pdf Scott Ford Senior Systems Engineer [p] 678.266.3399 x304[m] 609-346-0399

Re: How to insert records using EXECIO

2008-10-17 Thread Hunkeler Peter (KIUK 3)
Scott, I thought you wanted to demonstrate how to insert records at the beginning of a file. I must have misunderstood. -- Peter Hunkeler CREDIT SUISSE -- For IBM-MAIN subscribe / signoff / archive access instructions, send

Re: How to insert records using EXECIO

2008-10-17 Thread Paul Gilmartin
On Fri, 17 Oct 2008 08:35:28 +0200, Hunkeler Peter (KIUK 3) wrote: Its alreqdy 8:30am here but it might still be too early to understand your sample. The result shown indicates I didn't understand it last night. that you implemented an append, which of course is equal to insert after last

Re: How to insert records using EXECIO

2008-10-17 Thread Howard Brazee
On 16 Oct 2008 14:06:57 -0700, [EMAIL PROTECTED] wrote: I wonder - Why is it not possible to add records to the beginning of a data set? Wouldn't it be possible for a sufficiently clever program to place the inserted records into a newly allocated area on disk, and then modify the VTOC to

Re: How to insert records using EXECIO

2008-10-17 Thread Scott Ford
Peter (KIUK 3) Sent: Friday, October 17, 2008 8:14 AM To: IBM-MAIN@BAMA.UA.EDU Subject: Re: How to insert records using EXECIO Scott, I thought you wanted to demonstrate how to insert records at the beginning of a file. I must have misunderstood. -- Peter Hunkeler CREDIT SUISSE

How to insert records using EXECIO

2008-10-16 Thread P.Sabarish Kannan
Hi I have a requirement to insert some records in the beginning of a file where already some lines are existing . i tried using DISKW using MOD , but they are appending to the end. How do we insert in the beginning? I am using REXX for this program. Thanks in advance Sabarish

Re: How to insert records using EXECIO

2008-10-16 Thread Veilleux, Jon L
-Original Message- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of P.Sabarish Kannan Sent: Thursday, October 16, 2008 7:22 AM To: IBM-MAIN@BAMA.UA.EDU Subject: How to insert records using EXECIO Hi I have a requirement to insert some records in the beginning

Re: How to insert records using EXECIO

2008-10-16 Thread Walt Farrell
On Thu, 16 Oct 2008 06:22:27 -0500, P.Sabarish Kannan [EMAIL PROTECTED] wrote: I have a requirement to insert some records in the beginning of a file where already some lines are existing . i tried using DISKW using MOD , but they are appending to the end. How do we insert in the beginning? I am

Re: How to insert records using EXECIO

2008-10-16 Thread Hunkeler Peter (KIUK 3)
I have a requirement to insert some records in the beginning of a file where already some lines are existing . i tried using DISKW using MOD, but they are appending to the end. How do we insert in the beginning? I am using REXX for this program. There is no direct way to insert data into a

Re: How to insert records using EXECIO

2008-10-16 Thread Paul Gilmartin
On Thu, 16 Oct 2008 07:49:45 -0400, Veilleux, Jon L wrote: You can read the whole file into a stem variable, ... I feel old. You really ought to have a fallback mechanism in case can fails. -- gil -- For IBM-MAIN subscribe /

Re: How to insert records using EXECIO

2008-10-16 Thread Veilleux, Jon L
Of Paul Gilmartin Sent: Thursday, October 16, 2008 9:19 AM To: IBM-MAIN@BAMA.UA.EDU Subject: Re: How to insert records using EXECIO On Thu, 16 Oct 2008 07:49:45 -0400, Veilleux, Jon L wrote: You can read the whole file into a stem variable, ... I feel old. You really ought to have a fallback

Re: How to insert records using EXECIO

2008-10-16 Thread Paul Gilmartin
On Thu, 16 Oct 2008 06:53:15 -0500, Walt Farrell wrote: I would write the new records into a new file and then copy the existing file and append its records to that new file. After that, the exec could then delete the existing file and rename the new one to the old name if needed. And I'll

Re: How to insert records using EXECIO

2008-10-16 Thread Paul Gilmartin
On Thu, 16 Oct 2008 09:25:51 -0400, Veilleux, Jon L wrote: Actually, I remember installing Amdahl SP Assist so that our machines could have more than 16MB of real storage. Times have changed.. Can Rexx keep stem variables above the bar nowadays? -- gil

Re: How to insert records using EXECIO

2008-10-16 Thread Veilleux, Jon L
-Original Message- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Paul Gilmartin Sent: Thursday, October 16, 2008 9:19 AM To: IBM-MAIN@BAMA.UA.EDU Subject: Re: How to insert records using EXECIO On Thu, 16 Oct 2008 07:49:45 -0400, Veilleux, Jon L wrote: You can read

Re: How to insert records using EXECIO

2008-10-16 Thread Lizette Koehler
Depending on the number of records in the input file, EXECIO may not be the most efficient way to do this. But you could create a new file with the new lines in it and then use something like IEBGENER later in the REXX to mod the data from the original file into the new file. The reason to do it

Re: How to insert records using EXECIO

2008-10-16 Thread Patrick O'Keefe
On Thu, 16 Oct 2008 13:53:47 +0200, Hunkeler Peter (KIUK 3) [EMAIL PROTECTED] wrote: I have a requirement to insert some records in the beginning of a file where already some lines are existing . i tried using DISKW using MOD, but they are appending to the end. How do we insert in the

Re: How to insert records using EXECIO

2008-10-16 Thread Scott Ford
is prohibited. -Original Message- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Patrick O'Keefe Sent: Thursday, October 16, 2008 3:25 PM To: IBM-MAIN@BAMA.UA.EDU Subject: Re: How to insert records using EXECIO On Thu, 16 Oct 2008 13:53:47 +0200, Hunkeler

Re: How to insert records using EXECIO

2008-10-16 Thread Jack . Hamilton
I wonder - Why is it not possible to add records to the beginning of a data set? Wouldn't it be possible for a sufficiently clever program to place the inserted records into a newly allocated area on disk, and then modify the VTOC to point to that new area first and the old first area next?

Re: How to insert records using EXECIO

2008-10-16 Thread Patrick O'Keefe
On Thu, 16 Oct 2008 16:24:14 -0400, Scott Ford [EMAIL PROTECTED] wrote: Patrick, I have been updating in place with Execio in Rexx. ... I didn't mean to imply you couldn't update in place. That's a lot different than inserting. Pat O'Keefe

Re: How to insert records using EXECIO

2008-10-16 Thread Scott Ford
Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Patrick O'Keefe Sent: Thursday, October 16, 2008 6:42 PM To: IBM-MAIN@BAMA.UA.EDU Subject: Re: How to insert records using EXECIO On Thu, 16 Oct 2008 16:24:14 -0400, Scott Ford [EMAIL PROTECTED] wrote: Patrick, I have been updating

Re: How to insert records using EXECIO

2008-10-16 Thread Jürgen Kehr
Hi, ... and after 15 records added this way you'll get an x37 error, because your dataset have more than 16 extents. [EMAIL PROTECTED] schrieb: I wonder - Why is it not possible to add records to the beginning of a data set? Wouldn't it be possible for a sufficiently clever program to

Re: How to insert records using EXECIO

2008-10-16 Thread Gerhard Postpischil
[EMAIL PROTECTED] wrote: I wonder - Why is it not possible to add records to the beginning of a data set? Wouldn't it be possible for a sufficiently clever program to place the inserted records into a newly allocated area on disk, and then modify the VTOC to point to that new area first and

Re: How to insert records using EXECIO

2008-10-16 Thread Paul Gilmartin
On Thu, 16 Oct 2008 18:53:48 -0400, Scott Ford wrote: I understand what you said, my comments are that an insert was also very doable in rexx..no more no less. I'm intrigued. Can you point us to some sample code? or is this just the copy-append-rename already posted a couple times in this

Re: How to insert records using EXECIO

2008-10-16 Thread Scott Ford
:[EMAIL PROTECTED] On Behalf Of Paul Gilmartin Sent: Thursday, October 16, 2008 8:05 PM To: IBM-MAIN@BAMA.UA.EDU Subject: Re: How to insert records using EXECIO On Thu, 16 Oct 2008 18:53:48 -0400, Scott Ford wrote: I understand what you said, my comments are that an insert was also very doable

Re: How to insert records using EXECIO

2008-10-16 Thread Scott Ford
- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Paul Gilmartin Sent: Thursday, October 16, 2008 8:05 PM To: IBM-MAIN@BAMA.UA.EDU Subject: Re: How to insert records using EXECIO On Thu, 16 Oct 2008 18:53:48 -0400, Scott Ford wrote: I understand what you said, my

Re: How to insert records using EXECIO

2008-10-16 Thread Scott Ford
- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Paul Gilmartin Sent: Thursday, October 16, 2008 8:05 PM To: IBM-MAIN@BAMA.UA.EDU Subject: Re: How to insert records using EXECIO On Thu, 16 Oct 2008 18:53:48 -0400, Scott Ford wrote: I understand what you said, my comments