Re: Program to Convert copybook to C structure
- From: "William M. Klein" <wmklein@xxxxxxxxxxxxxxxxx>
- Date: Fri, 21 Oct 2005 23:44:18 GMT
Micro Focus used to have a utility that created COPY members out of header files
(if I recall correctly) - but I don't recall anything that did the opposite. (I
could be wrong on this and I don't know if it is still available)
--
Bill Klein
wmklein <at> ix.netcom.com
"Michael Mattias" <michael.mattias@xxxxxxx> wrote in message
news:hZd6f.1220$Y61.1182@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> Is there a program that will convert a copybook record layout to a C
>> structure? Thanks
>
> I've never seen one.
>
> Then again, you can probably convert a 100-member COBOL record to C format
> in about 30 minutes and it's 'by definition' a one-time job, so I'm not
> surprised no one has ever tried to create a 'utility' to do it
>
> But if you don't know the COBOL datatypes, it would be pretty hard. So
> download this...
> http://www.flexus.com/ftp/cobdata.zip
> .. for a tutorial on COBOL datatypes. (The included software is VERY old and
> not much fun to use, but the text is still good)
>
> If you have a COBOL source or copyboook, this might be useful:
> http://www.flexus.com/ftp/cobfd.zip
> That's some MS-DOS (you heard me, MS-DOS) software which will parse your
> file and create a report of offsets and data lengths for every variable in
> the copybook.
>
> --
> Michael Mattias
> Tal Systems, Inc.
> Racine WI
> mmattias@xxxxxxxxxxxxxx
>
>
>
>
.
- Follow-Ups:
- Re: Program to Convert copybook to C structure
- From: Wiggy
- Re: Program to Convert copybook to C structure
- From: Howard Brazee
- Re: Program to Convert copybook to C structure
- References:
- Program to Convert copybook to C structure
- From: Karen Monkres
- Re: Program to Convert copybook to C structure
- From: Michael Mattias
- Program to Convert copybook to C structure
- Prev by Date: Re: Program to Convert copybook to C structure
- Next by Date: Re: Cobol work?
- Previous by thread: Re: Program to Convert copybook to C structure
- Next by thread: Re: Program to Convert copybook to C structure
- Index(es):