[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[open-cobol-list] Re SPECIAL-NAMES
From: |
Roger While |
Subject: |
[open-cobol-list] Re SPECIAL-NAMES |
Date: |
Fri Jul 22 00:15:15 2005 |
Q1 - "info -f texi/open-cobol.info"
Also "cobc -help"
Q2 - See above, also see "config/default.conf"
Q3 - ??? - "cobc -help"
Q4 - Here at Sourceforge or www.opencobol.org
where can i find more detailed doku of cobc?
where can i find doku of the .conf-files?
where can i set the compiler options?
some inet-links?
Re. Prog
What do you expect it to do ? You have defined input/output
as fixed-length 80 characters.
If you are trying to pass the prog itself as input to the prog,
then you need to do something like -
Add the ORGANIZATION IS LINE SEQUENTIAL to the
SELECT clauses of both input/output.
Define FD's like :
FD INFILE.
01 INREC PIC X(256).
FD OUTFILE.
01 OUTREC.
03 SEQNUM PIC 999999.
03 FILLER PIC X(250).
Then
01 MYSEQNUM PIC 9(8) COMP VALUE 1.
In the Prog loop -
MOVE SPACES TO OUTREC.
READ INFILE INTO OUTREC.
MOVE MYSEQNUM TO SEQNUM.
ADD 1 TO MYSEQNUM.
WRITE OUTREC.
Roger
the other question is not so short:
this is my infile: