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.
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
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
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...
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...
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.
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...
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...
Hi,
I'm very sorry for my lack of knowledge on this site, but I'm still having problems. All I want to do is to scan a field and remove the trailing spaces. Please give me a quick example of how to do this. For example, an address field where the field length is 40 characters, but the field...
Hi All,
I'm very interested in becoming a Oracle DBA. I've been a mainframe and midrange programmer for many years with expertise in Cobol and RPG. I've also been a SQLSERVER DBA (this was along with my programming duties). I know some oracle, but not enough to get hired as a Oracle DBA...
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.