Re: Break a dataset into new record boundaries?

2013-01-18 Thread Ze'ev Atlas
To: IBM-MAIN@LISTSERV.UA.EDU Sent: Thursday, January 17, 2013 9:52 PM Subject: Re: Break a dataset into new record boundaries? In 1358352865.70255.yahoomail...@web120503.mail.ne1.yahoo.com, on 01/16/2013   at 08:14 AM, Ze'ev Atlas zatl...@yahoo.com said: Don't misunderstand me, I love Rexx

Re: Break a dataset into new record boundaries?

2013-01-17 Thread Shmuel Metz (Seymour J.)
In 1358352865.70255.yahoomail...@web120503.mail.ne1.yahoo.com, on 01/16/2013 at 08:14 AM, Ze'ev Atlas zatl...@yahoo.com said: Don't misunderstand me, I love Rexx... just would want it to have better IO and regular expressions (in z/OS - on other platforms Rexx already has this capability,

Re: Break a dataset into new record boundaries?

2013-01-17 Thread Shmuel Metz (Seymour J.)
In 1358346823.60155.yahoomail...@web120503.mail.ne1.yahoo.com, on 01/16/2013 at 06:33 AM, Ze'ev Atlas zatl...@yahoo.com said: I would do Perl too, but what if you are limited to Rexx and EXECIO  Then I'd grit my teeth and use parse to split the data. In either case the real problem is what

Re: Break a dataset into new record boundaries?

2013-01-16 Thread Massimo Biancucci
  Da: Charles Mills charl...@mcn.org A: IBM-MAIN@LISTSERV.UA.EDU Inviato: Martedì 15 Gennaio 2013 18:04 Oggetto: Break a dataset into new record boundaries? I've got a dataset that has been mangled through some misguided efforts such that original record boundaries have been lost. It used

Re: Break a dataset into new record boundaries?

2013-01-16 Thread Ze'ev Atlas
I would do Perl too, but what if you are limited to Rexx and EXECIO    Ze'ev Atlas From: Shmuel Metz (Seymour J.) shmuel+...@patriot.net To: IBM-MAIN@LISTSERV.UA.EDU Sent: Tuesday, January 15, 2013 10:44 PM Subject: Re: Break a dataset into new record

Re: Break a dataset into new record boundaries?

2013-01-16 Thread Massimo Biancucci
       RETURN Da: Charles Mills charl...@mcn.org A: IBM-MAIN@LISTSERV.UA.EDU Inviato: Mercoledì 16 Gennaio 2013 16:53 Oggetto: Re: Break a dataset into new record boundaries? Charles

Break a dataset into new record boundaries?

2013-01-15 Thread Charles Mills
I've got a dataset that has been mangled through some misguided efforts such that original record boundaries have been lost. It used to be RECFM=V and now it is RECFM=F As luck would have it, every original record begins with the same hex value. Can anyone suggest a simple tool -- z/OS, USS, or

Re: Break a dataset into new record boundaries?

2013-01-15 Thread Paul Gilmartin
On Tue, 15 Jan 2013 09:04:30 -0800, Charles Mills wrote: I've got a dataset that has been mangled through some misguided efforts such that original record boundaries have been lost. It used to be RECFM=V and now it is RECFM=F Surely not FTP!? As luck would have it, every original record begins

Re: Break a dataset into new record boundaries?

2013-01-15 Thread Dave Salt
: charl...@mcn.org Subject: Break a dataset into new record boundaries? To: IBM-MAIN@LISTSERV.UA.EDU I've got a dataset that has been mangled through some misguided efforts such that original record boundaries have been lost. It used to be RECFM=V and now it is RECFM=F As luck would have

Re: Break a dataset into new record boundaries?

2013-01-15 Thread Roberts, John J
I've got a dataset that has been mangled through some misguided efforts such that original record boundaries have been lost. It used to be RECFM=V and now it is RECFM=F As luck would have it, every original record begins with the same hex value. Can anyone suggest a simple tool -- z/OS, USS, or

Re: Break a dataset into new record boundaries?

2013-01-15 Thread John McKown
I know an easy way to do it in a z/OS UNIX file, using sed. The only restriction is that it won't work if the file has an embedded x'15' (z/OS UNIX new line). On a z/OS UNIX shell prompt (such as TSO OMVS, or ssh or telnet). If the value at the start of the record is not a printable character, you

Re: Break a dataset into new record boundaries?

2013-01-15 Thread Paul Gilmartin
On Tue, 15 Jan 2013 11:21:37 -0600, Roberts, John J wrote: If binary, I would just write a one-off ASM program to recover the original records. It's probably a 30 minute task, easier than trying to learn anything new. For me and for some others, that _is_ trying to learn something new. --

Re: Break a dataset into new record boundaries?

2013-01-15 Thread Paul Gilmartin
On Tue, 15 Jan 2013 09:04:30 -0800, Charles Mills wrote: I've got a dataset that has been mangled through some misguided efforts such that original record boundaries have been lost. It used to be RECFM=V and now it is RECFM=F As luck would have it, every original record begins with the same hex

Re: Break a dataset into new record boundaries?

2013-01-15 Thread Charles Mills
that way. Thanks all! Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Paul Gilmartin Sent: Tuesday, January 15, 2013 9:25 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Break a dataset into new record boundaries? On Tue, 15 Jan

Re: Break a dataset into new record boundaries?

2013-01-15 Thread John McKown
Doesn't TR just do a one-for-one translation of bytes? I.e. I don't think you can use it to insert, as your OOPS indicated. Your tr translates all \??? to \025 and all \025 to \???. I don't think this is what is desired. We could merge your answer with mine similar to: cp -B //'ZOS.DSN'

Re: Break a dataset into new record boundaries?

2013-01-15 Thread Sri h Kolusu
into new record boundaries? Sent by: IBM Mainframe Discussion List IBM-MAIN@listserv.ua.edu I've got a dataset that has been mangled through some misguided efforts such that original record boundaries have been lost. It used to be RECFM=V and now it is RECFM=F As luck would have it, every

Re: Break a dataset into new record boundaries?

2013-01-15 Thread Walt Farrell
On Tue, 15 Jan 2013 09:04:30 -0800, Charles Mills charl...@mcn.org wrote: I've got a dataset that has been mangled through some misguided efforts such that original record boundaries have been lost. It used to be RECFM=V and now it is RECFM=F You did not say how it was mangled, and that can be

Re: Break a dataset into new record boundaries?

2013-01-15 Thread Charles Mills
into new record boundaries? Charles, You can use RESIZE operator to break a large record into small records. I assumed that each record starts with X'5B' ($) and each record has a max length of 200 bytes and you have a max of 10 records in a single large FB record. //STEP0100 EXEC PGM=ICETOOL

Re: Break a dataset into new record boundaries?

2013-01-15 Thread Sri h Kolusu
: From: Charles Mills charl...@mcn.org To: IBM-MAIN@listserv.ua.edu, Date: 01/15/2013 10:42 AM Subject: Re: Break a dataset into new record boundaries? Sent by: IBM Mainframe Discussion List IBM-MAIN@listserv.ua.edu Sri - Thanks! That will do it, assuming I do have ICETOOL. I will have

Re: Break a dataset into new record boundaries?

2013-01-15 Thread John McKown
That is very neat! Thanks. I need to put that in my bag of tricks. Actually, I need to really get into the DFSORT book to see all the new nifties. I'd bet that we could use it to replace a lot of our EasyTrievePlus processing. On Tue, Jan 15, 2013 at 12:19 PM, Sri h Kolusu skol...@us.ibm.com

Re: Break a dataset into new record boundaries?

2013-01-15 Thread Bass, Walter W
snip I think I just need a PF-key-invocable macro that would split a record at the cursor position, putting the character under the cursor into the latter record. /snip You don't need an edit macro for that one. Just edit the dataset, enter the KEYS command and set the PF key of your

Re: Break a dataset into new record boundaries?

2013-01-15 Thread Charles Mills
, January 15, 2013 11:51 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Break a dataset into new record boundaries? snip I think I just need a PF-key-invocable macro that would split a record at the cursor position, putting the character under the cursor into the latter record. /snip You don't

Re: Break a dataset into new record boundaries?

2013-01-15 Thread Ted MacNEIL
...@mcn.org Sender: IBM Mainframe Discussion List IBM-MAIN@LISTSERV.UA.EDU Date: Tue, 15 Jan 2013 12:04:14 To: IBM-MAIN@LISTSERV.UA.EDU Reply-To: IBM Mainframe Discussion List IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Break a dataset into new record boundaries? Cool idea but 1

Re: Break a dataset into new record boundaries?

2013-01-15 Thread Charles Mills
Of Ted MacNEIL Sent: Tuesday, January 15, 2013 12:13 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Break a dataset into new record boundaries? 1. Shouldn't happen if you hit enter right away. They're just lines for you to insert text, if wanted. 2. The file has to have variable length records

Re: Break a dataset into new record boundaries?

2013-01-15 Thread Charles Mills
@LISTSERV.UA.EDU] On Behalf Of Paul Gilmartin Sent: Tuesday, January 15, 2013 12:44 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Break a dataset into new record boundaries? On Tue, 15 Jan 2013 12:16:55 -0800, Charles Mills wrote: Yeah, it seems to be working. Not sure yet. I think perhaps the apparent blanks

Re: Break a dataset into new record boundaries?

2013-01-15 Thread Charles Mills
as expected. Repeat as necessary. Thanks all! Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Paul Gilmartin Sent: Tuesday, January 15, 2013 12:44 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Break a dataset into new record

Re: Break a dataset into new record boundaries?

2013-01-15 Thread Ed Gould
- From: IBM Mainframe Discussion List [mailto:IBM- m...@listserv.ua.edu] On Behalf Of Paul Gilmartin Sent: Tuesday, January 15, 2013 9:25 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Break a dataset into new record boundaries? On Tue, 15 Jan 2013 11:21:37 -0600, Roberts, John J wrote

Re: Break a dataset into new record boundaries?

2013-01-15 Thread Charles Mills
@LISTSERV.UA.EDU Subject: Re: Break a dataset into new record boundaries? Charles: If all the records are V then why not just zap the dscb? then user iebgener? If the records are mixed (F VB) then use any of the suggestions