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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by hugheskbh

  1. hugheskbh

    Sorting an arrary or table

    Thanks PHV, but do you have an examples because I don't have a MF Cobol Language reference manual. Thanks
  2. hugheskbh

    Sorting an arrary or table

    Hi, Does anyone know how to sort an array or table in cobol particularly Micro Focus Cobol? Thanks
  3. hugheskbh

    streaming a datafile in unix

    Thanks guys, I'll give these examples a try and let you know what happens.
  4. hugheskbh

    streaming a datafile in unix

    Hi Ken, I have a file that has one field, but instead of the data in the file presented horizonal, I would like it to be presented as one long data stream.
  5. hugheskbh

    streaming a datafile in unix

    HI, I was wondering if there's a way to stream a flat file into one large data stream in unix? Thanks in advance for help.
  6. hugheskbh

    remove first 2 characters in a flat file using a unix script.

    Thanks to both of you , this works fine. Stefanwagner I used your example to output to a new file. My only other questions is how can I place this in a unix script because after the file is created, I have to do other things with it using a script. Thanks
  7. hugheskbh

    remove first 2 characters in a flat file using a unix script.

    Hi Feherke, I'm really not a unix programmer, could you please explain how it works. I basically have to read a flat file and strip out the first 2 characters in each record. Then move either move the record over 2 spaces or write to another file. Thanks
  8. hugheskbh

    remove first 2 characters in a flat file using a unix script.

    Hi, I was wondering if there's a way to read a flat file and strip out the first 2 characters in a unix script. Thanks
  9. hugheskbh

    Moving a fixed length field to a variable length field

    It worked. I used 3gm suggestions and it looks good. Thanks for all of your help.
  10. hugheskbh

    Moving a fixed length field to a variable length field

    Thanks for all of your suggestions. TonHu I'm going to use your example and I would let everyone know the results. Thanks again
  11. hugheskbh

    Moving a fixed length field to a variable length field

    Hi, I can use JCL to define the file, but I'm asking is are are there any examples on moving the data from the fixed field to a variable field. I think I have to maybe use an array to count backwards until I find the first character that's not a space, but I'm stuck as to whatelse I need to...
  12. hugheskbh

    Moving a fixed length field to a variable length field

    Do anyone know how to do this? The file is uploaded to the mainframe. I'm using cobol on the mainframe to write to an output file. The file is going to be a flat file just like the input. The only difference is I want the file to be variable length instead of fixed lenght to eliminate spaces...
  13. hugheskbh

    Moving a fixed length field to a variable length field

    It's not a csv file, it's a fixed lenght input file. All I'm trying to do is take this 200 character field and based on the data in the field, move it to a field the same size of the actual data in the field. Basically I need the output field to not have spaces.
  14. hugheskbh

    Moving a fixed length field to a variable length field

    I'm sorry but the file is a one field file coming from a unix operating system. We take the file and upload it to the mainframe. The field is 200 characters fixed length. The problem is if data in the field does not use all positions, spaces are left after the last data character. I need to...
  15. hugheskbh

    Moving a fixed length field to a variable length field

    Hi, I need to move a 200 byte fixed length field to a variablel length field in Cobol. Can someone help me with an example? Also, how would I know the length of the variable length field. In other words, the last character of the fixed length field needs to be the length of the variable...

Part and Inventory Search

Back
Top