cobol

Porting from Cobol to Java [closed]

。_饼干妹妹 提交于 2019-12-05 07:06:23
What differences are there between the top level architectures of Cobol and Java? What are the styles and cultures that programmers adopt in these two languages? How can one best port from Cobol to Java? Didier DURAND I was the project leader for the project NACA mentionned above (automatic transcoding from cobol to java for 4 millions lines of Cobol). If you have any specific question, please feel free to get in touch with me via a comment at the bottom of my article mentioned above. We've had lots of projects around the world reusing our tools with good success. We still improve them on a

In Cobol, to test “null or empty” we use “NOT = SPACE [ AND/OR ] LOW-VALUE” ? Which is it?

邮差的信 提交于 2019-12-05 03:01:51
I am now working in mainframe, in some modules, to test Not null or Empty we see : NOT = SPACE OR LOW-VALUE The chief says that we should do : NOT = SPACE AND LOW-VALUE Which one is it ? Thanks! Chief is correct. COBOL is supposed to read something like natural language (this turns out to be just another bad joke). Lets play with the following variables and values: A = 1 B = 2 C = 3 An expression such as: IF A NOT EQUAL B THEN... Is fairly straight forward to understand. One is not equal to two so we will do whatever follows the THEN . However, IF A NOT EQUAL B AND A NOT EQUAL C THEN... Is a

Allocation of Memory in Variable-Length Tables

南楼画角 提交于 2019-12-05 02:44:40
问题 Say I have the following variable-length table defined in WORKING-STORAGE ... 01 SOAP-RECORD. 05 SOAP-INPUT PIC X(8) VALUE SPACES. 05 SOAP-STATUS PIC 9 VALUE ZERO. 05 SOAP-MESSAGE PIC X(50) VALUE SPACES. 05 SOAP-ITEMS OCCURS 0 TO 500 TIMES DEPENDING ON ITEM-COUNT INDEXED BY ITEM-X. 10 SI-SUB-ITEMS OCCURS 0 TO 100 TIMES DEPENDING ON SUB-COUNT INDEXED BY SUB-X. 15 SS-KEY PIC X(8) VALUE SPACES. 15 SS-AMOUNT PIC -9(7).99 VALUE ZEROS. 15 SS-DESCR PIC x(100) VALUE SPACES. When this program runs,

“COPY” statement with “REPLACING” in COBOL

笑着哭i 提交于 2019-12-05 00:07:59
问题 I am getting compilation error as, A "COPY" statement with "REPLACING" phrase was found within a nested "COPY". This is our compilation setting that we can not use REPLACING verb in nested copy. We have one copybook which is having multiple copy statements with replacing verb. Can anyone help me to resolve this error? 回答1: Nesting COPYBOOKS in COBOL is a bit of a trick. In general you may nest copybooks only if they do not contain the REPLACING phrase and do not cause recursion. Suppose you

Need to see if I can use my read statements to accomplish 3 types of output?

时间秒杀一切 提交于 2019-12-04 20:41:20
I have been asked to write program to process 2 input files (customer and employee), matching the keys of both files and producing the following 3 output files : File-1: records that are on both files File-2: records that are on the customer file but not the employee file File-3: records that are on the employee file but not the customer file My loop is set so that it checks one record in customer file against every record in the employee file and then gets another key-pair value from the customer file and starts the process over. Currently: Matching Records - Must be in File1 and File2 (This

MSBuild: Conditional Construct (Project Reference | File Reference)

我的梦境 提交于 2019-12-03 21:51:17
问题 I´m still trying to eleminate the need of a cobol compiler in a Project with cobol-Projects in it. Is it possible to create following build behaviour: If the Configuration is Debug then use ProjectReferences on ExCobol.cblproj if the Configuration is DebugVB then use FileReferences on ExCobol.dll When Yes, How to achieve it? I assume the use of tags in the project file will do the trick. And does this really eliminate the need of a cobol compiler for the DebugVB Configuration? 回答1: Regarding

Rewrite of legacy code [closed]

こ雲淡風輕ζ 提交于 2019-12-03 18:40:32
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . My department is currently faced with the responsibility for the task of maintaining a rather large COBOL code base. We are wondering how to add new features to keep up with business needs. COBOL programmers are hard to come by these days, and we also think we would get

Allocation of Memory in Variable-Length Tables

自闭症网瘾萝莉.ら 提交于 2019-12-03 17:28:41
Say I have the following variable-length table defined in WORKING-STORAGE ... 01 SOAP-RECORD. 05 SOAP-INPUT PIC X(8) VALUE SPACES. 05 SOAP-STATUS PIC 9 VALUE ZERO. 05 SOAP-MESSAGE PIC X(50) VALUE SPACES. 05 SOAP-ITEMS OCCURS 0 TO 500 TIMES DEPENDING ON ITEM-COUNT INDEXED BY ITEM-X. 10 SI-SUB-ITEMS OCCURS 0 TO 100 TIMES DEPENDING ON SUB-COUNT INDEXED BY SUB-X. 15 SS-KEY PIC X(8) VALUE SPACES. 15 SS-AMOUNT PIC -9(7).99 VALUE ZEROS. 15 SS-DESCR PIC x(100) VALUE SPACES. When this program runs, will it initially allocate as much space as this table could possibly need, or is it more dynamic about

“COPY” statement with “REPLACING” in COBOL

久未见 提交于 2019-12-03 16:04:58
I am getting compilation error as, A "COPY" statement with "REPLACING" phrase was found within a nested "COPY". This is our compilation setting that we can not use REPLACING verb in nested copy. We have one copybook which is having multiple copy statements with replacing verb. Can anyone help me to resolve this error? Nesting COPYBOOKS in COBOL is a bit of a trick. In general you may nest copybooks only if they do not contain the REPLACING phrase and do not cause recursion. Suppose you had the following two copybooks: COPYBOOK ABC 01 :A:-VAR-A1 PIC X. 01 :A:-VAR-A2 PIC X. COPY XYZ REPLACING ==

Setting up COBOL Compiler under Mac OS?

拥有回忆 提交于 2019-12-03 14:25:54
In my university, we're being taught COBOL, and I'm trying to get a head start and learn COBOL, C++, and Java before I get into the classes next year. Problem is; COBOL is so old, it's hard to grab support for it in mac (my laptop is a mac). I understand it runs fine on Mac, but finding someone who can explain how to set up the compiler is another story. You can use brew to install GNU Cobol (Open Cobol). Just type: brew install gnu-cobol Then to compile program use: cobc -x hello.cob Browse --help for more option (like super nice -free ) Is there a particular Cobol you are trying to use. If