Re: Variable Length Input File



Wow -that's a slightly different animal than what I took you to originally
mean. Each run is essentially brand new file, huh?

The simple answer is to define the dataset as variable with the largest
possible record size set as the Max, then just use standard variable records
in COBOL.

That's a non-trivial challenge.

-Paul

<manubay@xxxxxxxxxxx> wrote in message
news:1166727602.664630.95240@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I think I didn't explain my problem well. Maybe it'll be better with
an example. Let's say, I have file called TESTA. TESTA doesn't always
have the same LRECL. Sometime TESTA will be defined in the JCL with
LRECL=30. Other times, it will be have LRECL=70. And so on. My
problem is how should TESTA be represented in FD?

Regards,
Greg

docdwarf@xxxxxxxxx wrote:
In article <1166725014.449314.160860@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
<manubay@xxxxxxxxxxx> wrote:
Will it work on MVS COB 370 compiler?

I've had no troubles in that environment.

How should i define the PIC
clause?

That depends on the file.

Unfortunately, I don't have a manual.

This might help:

<http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/FRAMESET/IGY3LR10/CCONTENTS?DT=20020920180651>

Thanks again.

You're quite welcome.

DD



.