Re: Variable Length Input File



Are you saying that the input file isn't always the SAME input file? Does it
always have the same fields in it?

What are the characteristics of the file?

COBOL does NOT handle well cases where the input may be one file today and
another (differently defined) file tomorrow. It does handle well cases where
the same RECFM=V is used and different length records appear in the file.

--
Bill Klein
wmklein <at> ix.netcom.com
<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



.



Relevant Pages

  • Re: Variable Length Input File
    ... environment LIKE this one because this environment was not then available, ... input file that was fixed block but depending on the day could have ... I have file called TESTA. ...
    (comp.lang.cobol)
  • Re: sed replace by enviroment var content
    ... Chris F.A. Johnson wrote: ... >> I want to use sed to read a piece of text and replace some strings by ... >> the value of that in the environment. ... >> The input file looks like this: ...
    (comp.unix.shell)
  • Re: sed replace by enviroment var content
    ... > the value of that in the environment. ... > The input file looks like this: ... > The shell should get the value of the parameter, but sed FIRST has to ... Shell Scripting Recipes: | My code in this post, if any, ...
    (comp.unix.shell)
  • sed replace by enviroment var content
    ... I want to use sed to read a piece of text and replace some strings by ... the value of that in the environment. ... The input file looks like this: ... I've tried lots of different single and double quotes, ...
    (comp.unix.shell)
  • Re: sed replace by enviroment var content
    ... > Ruud de Jong wrote: ... >> I want to use sed to read a piece of text and replace some strings by ... >> the value of that in the environment. ... >> The input file looks like this: ...
    (comp.unix.shell)