Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. klophockey

    How To Determine Encoding Of A File - And see the contents in Hex

    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...
  2. klophockey

    Read Partitioned File With Alternate Index Fails

    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...
  3. klophockey

    Multiple Field Alternate Index

    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
  4. klophockey

    Multiple Field Alternate Index

    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...
  5. klophockey

    Cobol Return Code In MFCobol

    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...
  6. klophockey

    Cobol Return Code In MFCobol

    I would appreciate your expert knowledge on an issue I am encountering but cannot find documentation that puts the issue to rest. I am using the MFCobol compiler and runtime for this Cobol program. The issue occurs on AIX, Solaris Sparc and Linux machines. The file being written to is defined...
  7. klophockey

    F3BICIMP.LIB

    Could someone tell me what this library is for or what it does? It is included in the Link command for Netcobol (Fujitsu). Thank you very much.
  8. klophockey

    NetCOBOL Delete Action

    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...
  9. klophockey

    Using C$SLEEP In A Cobol Program

    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...
  10. klophockey

    SELECT NOT OPTIONAL Statement

    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...
  11. klophockey

    Fujitsu Cobol Programming

    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
  12. klophockey

    Fujitsu Cobol Programming

    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...
  13. klophockey

    TXT File Created By Cobol Program

    Thanks very much for the input to this question. I was successful in getting done what I wanted to do. NOT TO INSULT ANYONE's INTELLIGENCE....Just wanting to share what I learned from those who shared with me and my actual coding experience. Here is how I did it: Create a program to open a...
  14. klophockey

    How To Know What Version Of A Particular Cobol Is On A Windows Machine

    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...
  15. klophockey

    Cobol Syntax Question For COMP-2

    thank you very much. That makes total sense
  16. klophockey

    Cobol Syntax Question For COMP-2

    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...
  17. klophockey

    TXT File Created By Cobol Program

    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...
  18. klophockey

    TXT File Created By Cobol Program

    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
  19. klophockey

    ISCobol Data Type Definitions

    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...
  20. klophockey

    ISCobol Data Type Definitions

    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...

Part and Inventory Search

Back
Top