Hi,
I am new in this forum and I am a beginner in MF-Cobol on Linux.
I have no exerpiences with the OS linux.
I have a question for the comiler directives.
Where do I set this compiler directives?
Is this a command for a cobol-source or a for the compiler-jcl?
I don't find an example for setting the directives in the documentation.
Thanks for help
Michel
You don't say what product or version number you are using so I am assuming it is Server Express on Linux,
Directives can be set using several different methods.
You can set them in a directives file like cobol.dir or on the cob command line or directly within a source file itself using the $SET statement.
Please see the Server Express 5.1 documentation covering directives here:
Thanks.
Hi,
I am new in this forum and I am a beginner in MF-Cobol on Linux.
I have no exerpiences with the OS linux.
I have a question for the comiler directives.
Where do I set this compiler directives?
Is this a command for a cobol-source or a for the compiler-jcl?
I don't find an example for setting the directives in the documentation.
Thanks for help
Michel
Hi, thank for your answer.
The documentation link doesn´t work.
We are using Server Express 5.1 on SUSE Linux.
This is our Compiler-call:
cob64 -u ${PROG}.cbl
How can I add the FOLDCOPYNAME"LOWER" Parameter to the Compiler-call?
Thanks
Michel
Hi,
I am new in this forum and I am a beginner in MF-Cobol on Linux.
I have no exerpiences with the OS linux.
I have a question for the comiler directives.
Where do I set this compiler directives?
Is this a command for a cobol-source or a for the compiler-jcl?
I don't find an example for setting the directives in the documentation.
Thanks for help
Michel
Please try the following link instead:
http://supportline.microfocus.com/documentation/books/sx51/cycomp.htm
Scroll down to the section marked Directives.
For your example something like the following would work:
cob64 -C FOLDCOPYNAME=LOWER ${PROG}.cbl
Hi,
I am new in this forum and I am a beginner in MF-Cobol on Linux.
I have no exerpiences with the OS linux.
I have a question for the comiler directives.
Where do I set this compiler directives?
Is this a command for a cobol-source or a for the compiler-jcl?
I don't find an example for setting the directives in the documentation.
Thanks for help
Michel
I try this:
cob64 -u -C FOLDCOPYNAME=LOWER lvb00901.cbl
and this:
cob64 -C FOLDCOPYNAME=LOWER lvb00901.cbl
but the error "Unknown COPY file R00094PA speicified" always occured.
The Copybook exist:
EP37 /home/koerner/copylib>ls
ls
ls -N --color=tty -T 0
r00094pa.cpy
Here are my Tests:
Test 1 with -u
Content of the variable COBCPY:
/home/koerner/copylib:/home/os/std/copylib:/home/os/std/copylib_osd:/home/os/std/copylib_azur
cob64 -u -C FOLDCOPYNAME=LOWER lvb00901.cbl
141 COPY R00094PA.
* 8-S******************* **
** Unknown COPY file R00094PA specified
Test 2 without -u:
Content of the variable COBCPY:
/home/koerner/copylib:/home/os/std/copylib:/home/os/std/copylib_osd:/home/os/std/copylib_azur
cob64 -C FOLDCOPYNAME=LOWER lvb00901.cbl
141 COPY R00094PA.
* 8-S******************* **
** Unknown COPY file R00094PA specified
Regards
Michel
Hi,
I am new in this forum and I am a beginner in MF-Cobol on Linux.
I have no exerpiences with the OS linux.
I have a question for the comiler directives.
Where do I set this compiler directives?
Is this a command for a cobol-source or a for the compiler-jcl?
I don't find an example for setting the directives in the documentation.
Thanks for help
Michel
We tested this here using the following:
Linux susea 2.6.16.46-0.7-default #1 SMP Mon Apr 23 16:13:18 UTC 2007 s390x s390x s390x
cobol v5.1.00
PTI=WrapPack 6
and we can not reproduce the problem. We tried the following test and also moved the copybook to a different folder and used COBCPY as you have and it worked fine here.
It would probablly be best to open up a support incident with customer care in order to pursue this furthur.
$ ls
lvb00901.cbl r00094pa.cpy
$ cat lvb00901.cbl
display "now in lvb00901.cbl".
COPY R00094PA.
$ cat r00094pa.cpy
display "now in r00094pa.cpy".
$ cob -u -C FOLDCOPYNAME=LOWER lvb00901.cbl
[compiles with no error]
$ cobrun lvb00901
now in lvb00901.cbl
now in r00094pa.cpy
Hi,
I am new in this forum and I am a beginner in MF-Cobol on Linux.
I have no exerpiences with the OS linux.
I have a question for the comiler directives.
Where do I set this compiler directives?
Is this a command for a cobol-source or a for the compiler-jcl?
I don't find an example for setting the directives in the documentation.
Thanks for help
Michel
Hi Michel,
Can you please share the resolution to the problem?
Thanks.
Hi,
I am new in this forum and I am a beginner in MF-Cobol on Linux.
I have no exerpiences with the OS linux.
I have a question for the comiler directives.
Where do I set this compiler directives?
Is this a command for a cobol-source or a for the compiler-jcl?
I don't find an example for setting the directives in the documentation.
Thanks for help
Michel
Hi Chris,
in the jcl the cobol-compiler was executed several times.
I overlook one call. There was the parameter "FOLDCOPYNAME=LOWER " missing.
The parameter works fine.
Michel