cobol

How do you edit a Binary Mainframe file in the RecordEditor using a Cobol Copybook (pt1)

落爺英雄遲暮 提交于 2019-11-29 12:22:12
How do you edit a Single-Record-type Binary Mainframe file in the RecordEditor using Cobol Copybook on a Windows or Linux PC. Note: This is an attempt to split a very broad question into a series of simpler Question and Answers. To Edit a File in the RecordEditor with a Cobol Copybook you must first load the copybook and then edit the file Loading the Cobol Copybook into the RecordEditor Select Record Layouts >>> Load Cobol Copybook menu options On the Cobol Load Screen enter the Cobol Copybook and your Mainframe Data file . The RecordEditor will read the file and try and work out what the

Is it possible to add inline comments in Cobol

倖福魔咒の 提交于 2019-11-29 11:22:18
Most modern programming languages give a way to add inline comments , generally those that use a newline character to indicate the end of a comment, and an arbitrary delimiter or sequence of tokens to indicate the beginning of a comment, while letting the beginning of the line being an interpreted instruction. In COBOL, while commenting a whole line is well documented (it can be done by putting an asterisk symbol ( * ) in column 7), finding documentation on whether or not you can comment the rest of the line beginning at an arbitrary position is harder. The question is: can you comment the

The unmentioned parts of COBOL's history [closed]

走远了吗. 提交于 2019-11-29 06:24:47
I'm very curious about old programming languages, especially COBOL, and as Wikipedia couldn't really tell me much about this topic, I decided to ask it here: Was COBOL the first programming language really being used in financial, stock and banking systems? Where exactly was COBOL used? Was it used more frequently than Fortran or BASIC, for example? I don't know if you lived at that time, but how did people react to the rising COBOL? Did they expect it to be the future? When has COBOL actually stopped being used to create new, big systems? Are you sure that there are still important legacy

Converting EBCDIC to ASCII in java

本秂侑毒 提交于 2019-11-29 05:52:19
I am supposed to convert an EBCDIC file to ASCII by using Java. So far I have this code: public class Migration { InputStreamReader reader; StringBuilder builder; public Migration(){ try { reader = new InputStreamReader(new FileInputStream("C:\\TI3\\Legacy Systemen\\Week 3\\Oefening 3\\inputfile.dat"), java.nio.charset.Charset.forName("ibm500") ); } catch(FileNotFoundException e){ e.printStackTrace(); } builder = new StringBuilder(); } public void read() throws IOException { int theInt; while((theInt = reader.read()) != -1){ char theChar = (char) theInt; builder.append(theChar); } reader.close

Reading a Cobol generated file

流过昼夜 提交于 2019-11-29 03:55:33
问题 I’m currently on the task of writing a c# application, which is going sit between two existing apps. All I know about the second application is that it processes files generated by the first one. The first application is written in Cobol. Steps: 1) Cobol application, writes some files and copies to a directory. 2) The second application picks these files up and processes them. My C# app would sit between 1) an 2). It would have to pick up the file generated by 1), read it, modify it and save

Is there a static analysis tool for Python, Ruby, Sql, Cobol, Perl, and PL/SQL? [closed]

喜你入骨 提交于 2019-11-29 03:21:38
问题 I am looking for a static analysis tool for Python, Ruby, Sql, Cobol, Perl, PL/SQL, SQL similar to find bugs and check style. I am looking for calculating the line count, identify bugs during the development, and enforcing coding standard. 回答1: Perl has Perl::Critic (and perlcritic.com) 回答2: I use PyChecker and pylint as Python code checkers. However it seems that they get buggy when you use some modules (e.g., socket or pygame , IIRC). 回答3: For Ruby, you're probably best served looking at

Reading cobol datastructures from Java

允我心安 提交于 2019-11-28 17:36:24
Is there a way to read cobol data in a Java program? More concretely I'm confronted with the following case: I have a file with fixed length records of data. The data definition is done as Cobol copybooks. What I think of is a library which taking into account the copybooks would be able to read those records. Ideally it should be possible to generate basic java classes and structures based on the copybook information. In a later step the datarecords would be parsed and the data filled into objects of those generated classes. Do you know a library providing this kind of functionality? Or any

How to convert unpacked decimal back to COMP-3? [closed]

北慕城南 提交于 2019-11-28 14:00:19
I had asked a question about converting COMP fields, for which I did not get any answer. I hope stack-overflow can help me on this question. I succeeded in converting COMP-3 to decimal. I need your help in converting the unpacked decimal back to COMP-3, in any high level programming language, but preferably in Java or c#.net. Bruce Martin In packed decimal -123 is represented as X'123d' (the last nyble c,d or f being the sign). One of the simplest ways to handle packed decimal is to simply convert the bytes to a hex string (or vice versa as required) then use normal string manipulation. This

Convert Mainframe Binary to Ascii Using any Open Source Code or Tool

一世执手 提交于 2019-11-28 10:27:14
How can I convert a mainframe binary file (EBCDIC) having cobol copybook as record layout information to ASCII file by keeping in mind regarding the packed and zoned decimal format using any Java API or Open source tool? Reading in Java If you want to Read Mainframe Cobol Files in java, have a look at JRecord - You will have to specify the charset (font). For US EBCDIC use CP037. Legstar - Have variety of Mainframe - Cobol Tools CB2java - Has not been updated in a while (not supported any more and has problems) Also the RecordEditor will let you view / Edit Mainframe Cobol Files Conversion

Setting shell's control break statement in the standard input stream “EOD” to exit the COBOL program

落花浮王杯 提交于 2019-11-28 06:48:23
问题 I would like to invoke a cobol program thru shell script by assigning command line prompt values in the "EOD" as below. #!/bin/bash run pub/coblprog<<:EOD: 1 2 3 :EOD: Consider if COBOL program "coblprog" has 4 command line prompts and expects 4 input command line arguments at runtime. I have specified 3 prompt values in the EOD. Since COBOL has four prompts but at EOD does passing 3 values , COBOL program is going into infinity loop to expecting the fourth prompt value. My requirement is, I