Page 1 of 1

Posted: Wed Sep 09, 2009 11:58 am
by ArndW
Do you have the hex value of both the EBDIC source and final ASCII characters?

Posted: Wed Sep 09, 2009 1:42 pm
by ArndW
Standard EBCDIC 4f is a pipe symbol, so that is good. But after copying it to UNIX it should still be 4F, so i am not sure what your value of "O" means - if the value isn't 4F then the error isn't inside DataStage.

Posted: Wed Sep 09, 2009 1:42 pm
by nagarjuna
Within the sequential file or complex flat file , Use cobol copy books to read the data in the file ....Also could you please let us know what are the options that you are using dd command ??

Posted: Wed Sep 09, 2009 2:26 pm
by ArndW
Are you doing an explicit conversion from EBCDIC to ASCII in your CFF stage? Is that field declared as Char(1)?

Posted: Wed Sep 09, 2009 2:59 pm
by alkanti
I tried to test it with sample file. I created only one character '|' in the file in ebcdic format. In CFF, I gave char(1) and character set = EBCDIC and the output is coming as '!' instead of '|'. Same thing is happening with SEQ FILE stage.


ArndW wrote:Are you doing an explicit conversion from EBCDIC to ASCII in your CFF stage? Is that field declared as Char(1)? ...

Posted: Wed Sep 09, 2009 5:59 pm
by chulett
Where did you create this sample file - on the Mainframe? If so, how exactly did you transfer it to the DataStage server?

Posted: Thu Sep 10, 2009 1:15 am
by ArndW
As Craig has already hinted, the problem might be in a nonbinary FTP or transfer from the host. Just create a UNIX file with an ASCII capital "O" (4F) and then push that through your CFF stage to see if you still have the problem.

Posted: Thu Sep 10, 2009 4:34 am
by Klaus Schaefer
You may also check which EBCDIC codepage is being used at your host system and then set the environment variable APT_EBCDIC_VERSION accordingly.

Klaus

Posted: Fri Sep 11, 2009 7:54 am
by alkanti
I have created a unix file with one character "O" on datastage host server and tried to read that from CFF, SEQ file stages and it is still getting converted into '!' instead of '|'. Is there anything to change in the Adminstrator?

Thanks
Kiran

ArndW wrote:As Craig has already hinted, the problem might be in a nonbinary FTP or transfer from the host. Just create a UNIX file with an ASCII capital "O" (4F) and then push that through your CFF stage to see ...

Posted: Mon Sep 14, 2009 6:39 pm
by bcarlson
Klaus Schaefer wrote:You may also check which EBCDIC codepage is being used at your host system and then set the environment variable APT_EBCDIC_VERSION accordingly.

Klaus
Any idea what APT_EBCDIC_VERSION is set to if it is not explicitly set? Where can I find it? I looked in Administrator at the project level settings and could not find it defined anywhere.

Thanks!

Brad.

Posted: Mon May 20, 2013 7:32 am
by adityavinay
If this issue is resolved, could you please post what have you done to fix this?

Thanks,
Aditya.

Posted: Mon May 20, 2013 1:21 pm
by ray.wurlod
No-one has marked it as Resolved.

Posted: Mon May 20, 2013 1:45 pm
by adityavinay
ray.wurlod wrote:No-one has marked it as Resolved. ...
I used "if" in my question as it is not marked as "resolved" .