I could use a little help. I hope someone has some wisdom to share with me.
I am dealing with two Very Large Corporations. I receive data from one of them (VLC1), massage it a bit, then pass it along to the second one (VLC2). It would be nice if VLC1 could format the data the way VLC2 wants it, but no such luck.
Everything is done thru SFTP. VLC1 sends the data to a directory in the IFS. I wrote an RPG program using the _C_IFS routines to read the data from one stream file and write it to another stream file. The input is tagged with CCSID 1208. I build the output with 819. The job CCSID is 37.
It worked fine for a while. However, recently I received a data conversion error -- CPE3490. I changed the CCSID of the output file to 1208, but it didn't make any difference.
I think the problem is occurring on the input (fgets) operation, because the program gets part of the way thru the file, then reads only part of a line. I've looked at that line in the input file in hex, and it looks like straight ASCII to me -- I don't see anything unusual.
So my questions:
1. Any ideas on how I can determine the offending character(s)?
2. Can you suggest other approaches, including but not necessarily limited to ones that might not require data conversion?
Thanks in advance.
Ted
I am dealing with two Very Large Corporations. I receive data from one of them (VLC1), massage it a bit, then pass it along to the second one (VLC2). It would be nice if VLC1 could format the data the way VLC2 wants it, but no such luck.
Everything is done thru SFTP. VLC1 sends the data to a directory in the IFS. I wrote an RPG program using the _C_IFS routines to read the data from one stream file and write it to another stream file. The input is tagged with CCSID 1208. I build the output with 819. The job CCSID is 37.
It worked fine for a while. However, recently I received a data conversion error -- CPE3490. I changed the CCSID of the output file to 1208, but it didn't make any difference.
I think the problem is occurring on the input (fgets) operation, because the program gets part of the way thru the file, then reads only part of a line. I've looked at that line in the input file in hex, and it looks like straight ASCII to me -- I don't see anything unusual.
So my questions:
1. Any ideas on how I can determine the offending character(s)?
2. Can you suggest other approaches, including but not necessarily limited to ones that might not require data conversion?
Thanks in advance.
Ted
Comment