I have a .dat file and would like to know if the format of it is ASCII, EBCDIC or whatever.
What is a simple way of knowing the format of the file.
I have looked at properties, tried Visual Studio but it say I need an app to open a .dat file.
Bottom line - I would like to know the format but...
I have an indexed file which has been partitioned. Prior to it being partitioned, it had a primary index and an alternate index with duplicates. When it was partitioned, a partition index was added to the file. Prior to the partitioning of the file, the Cobol code worked OK. I know there is...
I might add that FILDAT-TIMESTAMP and FILDAT-DATE are not fields which are next to one another in the file.
In addition, I am running this in Miro Focus Cobol
I have been looking for a good example of a Cobol program which a File Control statement with a primary key (index) and an alternate key (index).
I would greatly appreciate having an example of one because I think my syntax can't be right. Thanking you advance for taking time to help me.
When...
Frank....Thank you for your input. I think you have nailed it when you said "I added this key, but it's a duplicate". That is what an '02' means but I haven't found the documentation that explicitly says "An 02 status code will be returned instead of a 00 since your are writing a duplicate...
The NetCOBOL Win11.0 Language Reference guide shows that a RECORD can be deleted in NetCobol (Delete a record at 6.4.11 in the guide)
However, I do not see documentation on how to delete a file in a Cobol program in the NetCOBOL environment.
In practical coding, execution and observation, I...
I have used C$SLEEP in ACUCobol, ISCobol, MFCobol and RMCobol programs to delay execution of code within the program by a certain number of seconds while another process is executing.
When I try to use the same code in NetCobol (Fujitsu) (when linking my program), it says that it does not...
I am trying to determine an problem I am running into while compiling a program with Fujitsu cobol that has been compiled with MF, ACU, RM and IS Cobol with no issues.
The code is
SELECT NOT OPTIONAL mast1-file ASSIGN TO "mast1"
ORGANIZATION IS INDEXED
ACCESS MODE IS...
One of the things I am trying to work through is having a main module with copybooks being copied in.
If you have an example of a program that does that, I would appreciate looking at it.
Thank you
If anyone has some non-proprietary Cobol programs written to compile and run with Fujitsu Cobol, I would be greatly appreciate the opportunity to look them over to give me a better idea of the real world coding that works. I would be interested in looking at various examples and compiling...
...'PASSED' IN THE PROCESS
PROGRAM # 1
FILE-CONTROL.
SELECT MytextFile ASSIGN TO "Mytext.txt"
ORGANIZATION IS LINE SEQUENTIAL.
.
.
* The MytextFile file is opened EXTEND so data can added to it
* This file is used to capture test case results data for RMCobol
* because Display...
There are several types of Cobol installed on a Windows machine.
Microfocus
Acucobol
IScobol
For each of the types of cobol, what is the command line command that I could type to see the specific version number of each of those cobols?
OR
There may be an easier way in just looking at the file...
I am looking at a program and see code that I don't recognize.
I do not understand having the *>size 5 and *>size 5 scale 2 notations following the Pic and Comp-2
This was found in a Cobol program used by ISCobol.
Is the notation just a comment of information or is it something there...
Thank you very much for responding.
I had done some research and did see references to defining a file as Line Sequential.
I was thinking that would be the way to resolve my question but did want to hear from experts who may have directed me differently.
I appreciate the time you took to...
The .dat file output of a Cobol program is normal.
Is there a way to generate a .txt file out of a Cobol program?
I would appreciate a coding example that worked for you.
Thank you
Thank you for sharing your knowledge.
I understand what you are saying about the precision. So, I will think about the concept of not even testing COMP-1 fields because a hard coded value to check against what the value the machine stores may not be exact and would, therefore, fail the...
Could you point to or provide documentation that would show the appropriate way to code for COMP-1 and COMP-2 fields in Working Storage.
I read some documentation that the Picture clause is not allowed and that USAGE IS must be used. However, that does not compile cleanly in the ISCobol...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.