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 Mike Lewis 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. supra94red

    Program Inserting Hex Char for some reason.

    Thanks for the quick response, I never would have figured out that one.
  2. supra94red

    Program Inserting Hex Char for some reason.

    Microfocus COBOL in Windows NT. I've narrowed all the code down to nothing but read the file into a work area and write the file from the same work area. I'm not even moving anything.
  3. supra94red

    Program Inserting Hex Char for some reason.

    Hello all, I have an 11 byte hex field used for barcode purposes and when I come across an x'11' I get an x'00' byte inserted before it and the field now becomes a 12 byte field. I have tried defining the field as PIC X(11), PIC 9(11), PIC 9(11) COMP, and PIC 9(11) COMP-3 with no luck. PLEASE...
  4. supra94red

    String Search in Cobol

    Thanks for all your responses, I'm referencing an old college Cobol book that has poor examples of INSPECT and reference modification. Thus, I have not quite figured it out yet. To Crox, the SPF editor would have been my first choice but I have large files coming in regularly and would rather...
  5. supra94red

    String Search in Cobol

    Hello, Is there a way to scan a whole record for a keyword. For example I want to drop records with the word "widget" that can be found anywhere in a particular 100 byte field. Any help you can provide is appreciated.
  6. supra94red

    Capturing Info from Input File Name

    Hello, I trying to capture a portion of the input file name and write it to the output record. How would I go about doing this? For example, my Select Filein statement refers to filename TEST.DM123456.PROD.TXT and I want to capture DM123456 to store in a variable for my output. Thanks Dan.
  7. supra94red

    using SET to define I/O files

    MAN THAT WORKED, YOU'RE AWESOME!!!!! THANKS A MILLION!!!! :D Dan.
  8. supra94red

    using SET to define I/O files

    Hello, I can't get my dos SET statements to work in Microfocus Cobol version4.0.28 for Windows2000. I'm trying to use a statement such as "SET FILEIN1=C:\DATA\DATAIN.TXT" and then run the executable. I can get it to work in my evaluation copy of Realia Cobol, but not MFC. In the...
  9. supra94red

    Keycounts in Cobol

    AustinOne, I think you're right in that the input file will have to be sorted on state field for this to work. I need an algorithm to process an unsorted file and will probably have to go back to my original plan of using tables. I'm trying to use this as part of my data validation program so...
  10. supra94red

    Keycounts in Cobol

    I think I figured it out. I can probably do it with a one-level control break.
  11. supra94red

    Keycounts in Cobol

    Hi was wondering if anyone has a COBOL algorithm handy that would perform a keycount on a specified field. For example, lets say I wanted a keycount on a state field in a sequential file of 1 million records and I want it to return a report that looks something like the following: State Count...

Part and Inventory Search

Back
Top