gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [open-cobol-list] PIC not allowed


From: vince coen
Subject: Re: [open-cobol-list] PIC not allowed
Date: Wed, 29 Jul 2009 17:53:30 +0100
User-agent: KMail/1.9.6

Hi

On Wednesday 29 July 2009, Haroldo Stenger wrote:
> hi !
>
> I've just discovered open cobol , and I'm amazed. Big THANK YOU to you.
>
> I think I'll ask a lot of questions, trying to get my old RM COBOL 85
> system fully compiled by Open cobol.
>
> The first of which is : Even if the code below compiles fine in RM COBOL 85
> , it gets me a syntax error , even if I put -std=cobol85 in the cobc
> command line:
>
>        01 CAF-NUMERO PIC 999 COMP-1.
>        01 CAF-ALFANUM-1 REDEFINES CAF-NUMERO.
>            05 CAF-ALFANUM-2 PIC X.
>            05 CAF-ALFANUM PIC X.
>
> The idea there is to split a number.
>
> Is there a way that I can make the code compile ?

I'm not so sure that OC suppports comp-1, let alone in the way you want, but I 
know a man that does:

Roger ?

V.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]