Re: COBOL question: Why can't we use RECORD CONTAINS 0 CHARACTERS for RECFM=V files?

2008-12-30 Thread Kirk Talman
IBM Mainframe Discussion List IBM-MAIN@bama.ua.edu wrote on 12/17/2008 05:16:27 PM: Subject: Re: COBOL question: Why can't we use RECORD CONTAINS 0 CHARACTERS for RECFM=V files? Overriding LRECL for varying-length files simply works. Specify LRECL=32756 (32752?) and be done

COBOL question: Why can't we use RECORD CONTAINS 0 CHARACTERS for RECFM=V files?

2008-12-17 Thread Farley, Peter x23353
I was asked this question from an internal source and I don't know the answer myself, so I am hoping someone here does. The business task is to be able to handle multiple varying-length sequentially-accessed input files, each with different LRECL values, from a single COBOL file definition, as

Re: COBOL question: Why can't we use RECORD CONTAINS 0 CHARACTERS for RECFM=V files?

2008-12-17 Thread Paul Gilmartin
On Wed, 17 Dec 2008 16:55:55 -0500, Farley, Peter x23353 wrote: I was asked this question from an internal source and I don't know the answer myself, so I am hoping someone here does. The business task is to be able to handle multiple varying-length sequentially-accessed input files, each with

Re: COBOL question: Why can't we use RECORD CONTAINS 0 CHARACTERS for RECFM=V files?

2008-12-17 Thread John McKown
I've always used: RECORD CONTAINS 0 TO 32767 CHARACTERS DEPENDING ON var-name and then define var-name in WORKING-STORAGE to be a 77 level with the PICTURE of S9(9) BINARY. -- John -- For IBM-MAIN subscribe / signoff / archive

Re: COBOL question: Why can't we use RECORD CONTAINS 0 CHARACTERS for RECFM=V files?

2008-12-17 Thread Farley, Peter x23353
-Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Paul Gilmartin Sent: Wednesday, December 17, 2008 5:08 PM To: IBM-MAIN@bama.ua.edu Subject: Re: COBOL question: Why can't we use RECORD CONTAINS 0 CHARACTERS for RECFM=V files

Re: COBOL question: Why can't we use RECORD CONTAINS 0 CHARACTERS for RECFM=V files?

2008-12-17 Thread Ted MacNEIL
Do you mean just define the COBOL FD as RECORD CONTAINS 0 TO 32756 CHARACTERS and then use LRECL=32760 as a JCL override for a file no matter what it's variable max length is? I don't believe you need the JCL override. - Too busy driving to stop for gas!

COBOL question: Why can't we use RECORD CONTAINS 0 CHARACTERS for RECFM=V files?

2008-12-17 Thread Bill Klein
Hopefully, you mean RECORD VARYING IN SIZE from 0 to 32767 depending on var-name I do NOT think you can use RECORD CONTAINS with the DEPENDING onphrase. John McKown joa...@swbell.net wrote in message news:listserv%20081217160815.1...@bama.ua.edu... I've always used: RECORD CONTAINS 0

COBOL question: Why can't we use RECORD CONTAINS 0 CHARACTERS for RECFM=V files?

2008-12-17 Thread Bill Klein
I am not positive of this, but I think you DO need the JCL override. If the hard coded maximum LRECL in the FD does NOT match the maximum for the physical file and you don't have the JCL override, I believe you will get a file status of 39 when you OPEN the file indicating a physical file

Re: COBOL question: Why can't we use RECORD CONTAINS 0 CHARACTERS for RECFM=V files?

2008-12-17 Thread Ted MacNEIL
I am not positive of this, but I think you DO need the JCL override. There is a better way than discussing it. Test it. Unfortunately, I can't at the moment. (Can you say 'downsizing' boys girls?) - Too busy driving to stop for gas!

Re: COBOL question: Why can't we use RECORD CONTAINS 0 CHARACTERS for RECFM=V files?

2008-12-17 Thread Clark Morris
On 17 Dec 2008 14:37:47 -0800, in bit.listserv.ibm-main you wrote: Do you mean just define the COBOL FD as RECORD CONTAINS 0 TO 32756 CHARACTERS and then use LRECL=32760 as a JCL override for a file no matter what it's variable max length is? I don't believe you need the JCL override. You DO

Re: COBOL question: Why can't we use RECORD CONTAINS 0 CHARACTERS for RECFM=V files?

2008-12-17 Thread Paul Gilmartin
On Wed, 17 Dec 2008 19:26:01 -0400, Clark Morris wrote: On 17 Dec 2008 14:37:47 -0800, in bit.listserv.ibm-main you wrote: Do you mean just define the COBOL FD as RECORD CONTAINS 0 TO 32756 CHARACTERS and then use LRECL=32760 as a JCL override for a file no matter what it's variable max length