Still have no idea what your error message is though, and the image doesn't really cut it for local trials. So, unless I'm missing something obvious in the image (a distinct possibility) we'll need more info to help.
Cheers,
Blue
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Try and capture the message from the console, paste it here, and a chunk of source code we can maybe try out. If there is proprietary code, then we'd want what StackOverflow calls a Minimal Reproducible Verifiable Example or something close enough to not make for too much work on behalf of the helpers.
And we do not mind ping pong back and forth messaging to work through problems here.
Have good,
Blue
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2023-02-15
Cmd Compile - I have a copy of the compiler output I hope that will help
Please do not post screenshots of compile commands or output - you can just mark it with the mouse, then right-click and have it in the clipboard - and then post that.
Text can be read via RSS and mail subscription, and can also be searched for later. Images of code and text output only lead to access barriers...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As you want the (non-standard) rm-cobol syntax you need to enable that; normally -std=rm-strict should be enough, but as this config was not setup correctly you'd need to either adjust it before use (file config/rm-strict.conf; will be changed in the release version next week) or override it with -findirect-redefines.
... and as you want to compile RM/COBOL and also have their different screen use you definitely should compile with -std=rm-strict. It is possible that everything works after doing that...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Julius,
I do see in copybook zzwsrtdf that RD-WT-H44C has an entry without a PIC. Physical line 2102 in the copybook.
I do not know much about Screens and LINE and COLUMN, but I put the zzkeyssf copybook after the screen section. line and got no errors. ?
Perhaps that is a start....
Last edit: Mickey White 2023-02-16
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks so much. I will give it a try.
I looked at that line and more to the right there is the PIC clause this is a valid entry.
I will take a look at the next cpy tomorrow. Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Correction. My FTP of the copybooks had issue. I copied them back over and compiled and all worked with no errors (with putting the screen section line in before the zzkeyssf copybook).
cobc -x testpgm.cbl -std=rm
No errors
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Mickey I am using win 11 and the program that exe this copy book has the copy book coming after
the screen section which created the original errors listed above.
could you instruct me step by step so I will be on the same page as you?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
compile with cobc -std=rm-strict -findirect-redefines -x jctprwwp.cbl
If you want to add new features, then go with -std=rm instead, but that means that you may need to -fno-reserved=some,conflicting,words or rename user-defined words if you get "unexpected WORD" somewhere.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Your original error message has
... is not the original definition
on the REDEFINE.
As you want the (non-standard) rm-cobol syntax you need to enable that; normally -std=rm-strict should be enough, but as this config was not setup correctly you'd need to either adjust it before use (file config/rm-strict.conf; will be changed in the release version next week) or override it with -findirect-redefines.
... and as you want to compile RM/COBOL and also have their different screen use you definitely should compile with -std=rm-strict. It is possible that everything works after doing that...
Thanks Simon I'm still trying
How would the compile look I now use cobc -x prog to do the fix above.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to convert a RMcobol to Gnucobol the compile gave me the following errors
Compile and program
Can't tell much from that Julius. Try to cut and paste some of the text, or attach redacted code listings, as source, not image.
Unless you are getting the message from seq number 002500? There is a stray date after the period it looks like.
Cheers,
Blue
Last edit: Brian Tiffin 2023-02-14
thanks !that line is commented out
:-)
Still have no idea what your error message is though, and the image doesn't really cut it for local trials. So, unless I'm missing something obvious in the image (a distinct possibility) we'll need more info to help.
Cheers,
Blue
I'm sorry Blue I thought I had all the details available for debugging
I will redo the situation Thanks again !
Try and capture the message from the console, paste it here, and a chunk of source code we can maybe try out. If there is proprietary code, then we'd want what StackOverflow calls a Minimal Reproducible Verifiable Example or something close enough to not make for too much work on behalf of the helpers.
And we do not mind ping pong back and forth messaging to work through problems here.
Have good,
Blue
Cmd Compile - I have a copy of the compiler output I hope that will help
Last edit: Simon Sobisch 2023-02-19
Please do not post screenshots of compile commands or output - you can just mark it with the mouse, then right-click and have it in the clipboard - and then post that.
Text can be read via RSS and mail subscription, and can also be searched for later. Images of code and text output only lead to access barriers...
Julius, it would help to see the complete listing of the copybooks ZZWSRTDF.CPY and ZZKEYSSF.CPY
Thanks, I will try to get it to you as soon as possible.
Hello! Here are the two copybooks.
Your original error message has
on the
REDEFINE.As you want the (non-standard) rm-cobol syntax you need to enable that; normally
-std=rm-strictshould be enough, but as this config was not setup correctly you'd need to either adjust it before use (file config/rm-strict.conf; will be changed in the release version next week) or override it with-findirect-redefines.... and as you want to compile RM/COBOL and also have their different screen use you definitely should compile with
-std=rm-strict. It is possible that everything works after doing that...Julius,
I do see in copybook zzwsrtdf that RD-WT-H44C has an entry without a PIC. Physical line 2102 in the copybook.
I do not know much about Screens and LINE and COLUMN, but I put the zzkeyssf copybook after the
screen section.line and got no errors. ?Perhaps that is a start....
Last edit: Mickey White 2023-02-16
Thanks so much. I will give it a try.
I looked at that line and more to the right there is the PIC clause this is a valid entry.
I will take a look at the next cpy tomorrow. Thanks
Correction. My FTP of the copybooks had issue. I copied them back over and compiled and all worked with no errors (with putting the
screen sectionline in before the zzkeyssf copybook).cobc -x testpgm.cbl -std=rm
No errors
FYI it worked on my Windows 10 with no errors. version 3.2-rc2.0 using pdcurses
And worked on my linux box version 3.2-rc2.0 using ncursesw
Thanks Mickey I am trying to re-construct what you have done on my pc. I will try to be more
timely responsive to your effort for me.
Mickey I am using win 11 and the program that exe this copy book has the copy book coming after
the screen section which created the original errors listed above.
could you instruct me step by step so I will be on the same page as you?
Step by step:
SCREEN SECTIONcobc -std=rm-strict -findirect-redefines -x jctprwwp.cblIf you want to add new features, then go with
-std=rminstead, but that means that you may need to-fno-reserved=some,conflicting,wordsor rename user-defined words if you get "unexpected WORD" somewhere.What version of GnuCOBOL do you have? I used Arnold's 7zip exe . 64 bit.
Here is my test program:
My compile:
cobc -x shellx.cbl -std=rmWhat is your setup?
Last edit: Simon Sobisch 2023-02-25
Simon
Your original error message has
... is not the original definition
on the REDEFINE.
As you want the (non-standard) rm-cobol syntax you need to enable that; normally -std=rm-strict should be enough, but as this config was not setup correctly you'd need to either adjust it before use (file config/rm-strict.conf; will be changed in the release version next week) or override it with -findirect-redefines.
... and as you want to compile RM/COBOL and also have their different screen use you definitely should compile with -std=rm-strict. It is possible that everything works after doing that...
Thanks Simon I'm still trying
How would the compile look I now use cobc -x prog to do the fix above.
test
stay with me everyone I have bitten off more than I can chew at the moment
so I am going to take a step back and refocus then try again.
Simon thanks about the Clipboard tip.