The input file have records as: 8712351,8712353,8712353,8712354,8712356,8712352,8712355
8712352,8712355
Using COBOL I need to remove duplicates from the above file and write to an output file. I
wrote simple logic to read records and write to an output file.
Where do I need to put the logic of removing duplicates (say ,8712353,8712352...
Has anyone here been involved in any projects designed to eliminate COBOL or mitigate the risk of COBOL (for example, writing in-house compilers or using COBOL to generate NetBeans, etc.)? If so, what tools/strategies were adopted? Were you successful? What would you do differently?
Anecdotal stories welcome. Just trying to understa...
Hi
i'm looking for ways to decrypt a string in cobol that was encrypted in .net using RijndaelManaged. I have control of the algorithm so it doesn't need to be Rijdnael, but i just need to ensure that the data is encrypted.
Any help advice is appreciated.
Thanks
Sean
[Edit] - the data is encypted in a c# windows service that i've cre...
what is the equivaltent of PIC S9 with lenght 16 in oracle? I want it for storing timestamp
...
Is it possible to make different Configuration of one project one with and other without a installed cobol compiler?
I have a big project general written in VB.Net with some underprojects written in cobol.
Is it possible to create different Configs like "DebugVB" for the VB-Programmers and "DebugCob" for the cobol cracks?
I think of a...
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 assum...
Does anyone have an idea how you can catch the exception that cobol throws if you try to open an IO file if it doesn't exist, and then create a new file?
...
i want write contains of one Sequential File(PS) into another Sequential File(PS) using COBOl programming with the help of JCL in mainframe.Help me
...
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.
...
Even though we have languages like C++, Java, Python etc., why is COBOL still a preferred language in the business world?
EDIT:
Why was it so popular?
Sorry for not creating a separate thread for this question.
...
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?
...
Can anyone tell me the differnces in styles and architectures between these very differenct approaches please?
...
I'm just learning COBOL; I'm writing a program that simply echos back user input. I have defined a variable as:
User-Input PIC X(30).
Later when I ACCEPT User-Input, then DISPLAY User-Input " plus some extra text", it has a bunch of spaces to fill the 30 characters. Is there a standard way (like Ruby's str.strip!) to remove the extra ...
Is it possible to use XML GENERATE to create XML with multi-level nested elements of different sizes?
For example:
01 SOURCE-REC.
05 REPEATING-PARENT OCCURS 5 TIMES.
10 PARENT-NAME PIC X(7).
10 CHILD-COUNT PIC 9.
10 REPEATING-CHILD OCCURS 1 TO 5 TIMES
DEPENDING ON CHILD-COUNT.
...
How do you go about defining a two-dimensional MxN array in Cobol of which both M and N are of variable length?
Here's the message I get in Net Express when attempting to have a variable array inside another:
COBCH0144S OCCURS DEPENDING subsidiary to OCCURS only allowed with ODOSLIDE
...
I'm just starting COBOL, and ran into this with JCL... How do I compile a basic cobol program from my PDS, I know through instream it would just be
//SYSIN DD *
code code code
/*
I tried something like
//SYSIN DD DSN=the.pds.location(file),DISP=SHR
but all that shot back was garbage and a return code of 12 I think.
If anyone could ...
Please give me the links where I can find video tutorials for COBOL MAINFRAME JCL CICS Video Tutorials.
Please help.
...
I tagged this question "impossible" because after a lot of googling, i have not find any trace\reference to a possible answer.
I'm asking if there is some way\dirtytrick (possibly cheap) to access Microsoft Sql Server from z/OS mainframe (COBOL programs) and have the result in 3270 terminal emulation; i know that 3270 is a pretty old sys...
I am trying to find out a way to check whether a file is already opened in COBOL, so that I can open it if it is closed or close it if it is opened.
Thnx.
...
Hey everyone,
For learning purposes I am trying the following:
I am trying to display a table via COBOL ... I want to define the way it is all displayed in the SCREEN SECTION.
Following happens or is supposed to happen - all without multiple screens opening:
(1) User enters ENTRY-SCREEN
(2) User has to type in a password (nothing hap...