Re: Fw: How would you read a report?

2007-09-13 Thread Kenneth E Tomiak
How old was the original post? Most people read reports with their eyes. If you want a program to read a file, a file is a file is a file. Whether COBOL, REXX, SAS, or any other language is used has nothing to do with your need to define your input records to match the file. The cleanest way to

Re: How would you read a report?

2007-09-13 Thread Tom Schmidt
Discussion List On Behalf Of Howard Brazee Sent: Monday, September 10, 2007 09:46 Subject: How would you read a report? What would be the cleanest way to have a CoBOL program read a report file // DCB=(RECFM=FB,LRECL=133,DSORG=PS) Would you copy it first, changing its format? -- Tom

Re: How would you read a report?

2007-09-11 Thread Tom Marchant
On Mon, 10 Sep 2007 17:43:53 -0500, Dave Kopischke wrote: I think I'd write a REXX routine and call it from COBOL. You'd code 10,000 lines of COBOL to emulate what PARSE is capable of doing off-the-shelf. 10,000 lines? I don't think so. I'm sure your ReXX skills far surpass mine, but I

How would you read a report?

2007-09-10 Thread Howard Brazee
What would be the cleanest way to have a CoBOL program read a report file // DCB=(RECFM=FB,LRECL=133,DSORG=PS) Would you copy it first, changing its format? -- For IBM-MAIN subscribe / signoff / archive

Re: How would you read a report?

2007-09-10 Thread Lizette Koehler
If the file is on DASD or TAPE and I knew the layout of the file, I would use SAS or REXX to filter through and collect the stuff I want. I do this all the time with SYSLOG which does not look much different than the DCB provided below. Or probably could use DFSORT. COBOL could read the

Re: How would you read a report?

2007-09-10 Thread Binyamin Dissen
On Mon, 10 Sep 2007 10:45:55 -0600 Howard Brazee [EMAIL PROTECTED] wrote: :What would be the cleanest way to have a CoBOL program read a report :file :// DCB=(RECFM=FB,LRECL=133,DSORG=PS) FD BLOCK CONTAINS 0 RECORDS. 01 INPUT-RECORD PIC X(133). :Would you copy it first,

Re: How would you read a report?

2007-09-10 Thread Larry Burch
Howard: I would recommend OPEN, READ, CLOSE. :-) Nothing peculiar or special or difficult. I'm sure I don't understand why you ask. COBOL is my native language. I'm gonna be writing a COBOL pgm to read the sysout from a HSM command to list dumpvols, just any day now. On Mon, 10 Sep

Re: How would you read a report?

2007-09-10 Thread Ulrich Krueger
Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Howard Brazee Sent: Monday, September 10, 2007 09:46 To: IBM-MAIN@BAMA.UA.EDU Subject: How would you read a report? What would be the cleanest way to have a CoBOL program read a report file // DCB=(RECFM=FB,LRECL=133,DSORG

Re: How would you read a report?

2007-09-10 Thread Kirk Talman
Message- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Howard Brazee Sent: Monday, September 10, 2007 09:46 To: IBM-MAIN@BAMA.UA.EDU Subject: How would you read a report? What would be the cleanest way to have a CoBOL program read a report file

Fw: How would you read a report?

2007-09-10 Thread Bill Klein
I have seen a couple of replies and using REXX or SAS would certainly be a possibility. (I know one shop that used SPITBOL for this type of thing) The only tricky things about doing it in COBOL are: 1) with LRECL 133, I assume that the file is REALLY FBA - or FBM - not FB. If so, then make

Re: How would you read a report?

2007-09-10 Thread Dave Kopischke
On Mon, 10 Sep 2007 12:49:58 -0400, Lizette Koehler wrote: If the file is on DASD or TAPE and I knew the layout of the file, I would use SAS or REXX to filter through and collect the stuff I want. I do this all the time with SYSLOG which does not look much different than the DCB provided