How to tell CSVINTO file is ccsid 1208?
Posted: Wed Apr 19, 2023 3:26 pm
Hi,
I try to import a csv which data is french with accent and csvinto is blanking out all fields after those that have «accent» in text.
i used chgatr to chagne the file to csid 1208 but csvinto is putting it back to utf8.
I tried to use ccsid in options, but it is rejected with following error:
Message . . . . : Option 'ccsid=1208' is not valid for DATA-INTO; reason
code 3;
Cause . . . . . : An RPG procedure attempted to use an option string
containing option 'ccsid=1208' which is not valid in the context of the
DATA-INTO operation. The reason code is 3. The full option string is
"doc=file allowextra=yes allowmissing=yes ccsid=1208". Recovery . . . :
Contact the person responsible for program maintenance to determine the
cause of the problem. Technical description . . . . . . . . : Reason codes
and their meanings are as follows: 1. The syntax of an option is not valid.
Options must be specified in the form opt=value. 2. The option is not valid
in the context of DATA-INTO. 3. The value of the option is not recognized or
it is not valid in the context. 4. The "path" option must be specified for
DATA-INTO.
Tks for the help!
I try to import a csv which data is french with accent and csvinto is blanking out all fields after those that have «accent» in text.
i used chgatr to chagne the file to csid 1208 but csvinto is putting it back to utf8.
I tried to use ccsid in options, but it is rejected with following error:
Message . . . . : Option 'ccsid=1208' is not valid for DATA-INTO; reason
code 3;
Cause . . . . . : An RPG procedure attempted to use an option string
containing option 'ccsid=1208' which is not valid in the context of the
DATA-INTO operation. The reason code is 3. The full option string is
"doc=file allowextra=yes allowmissing=yes ccsid=1208". Recovery . . . :
Contact the person responsible for program maintenance to determine the
cause of the problem. Technical description . . . . . . . . : Reason codes
and their meanings are as follows: 1. The syntax of an option is not valid.
Options must be specified in the form opt=value. 2. The option is not valid
in the context of DATA-INTO. 3. The value of the option is not recognized or
it is not valid in the context. 4. The "path" option must be specified for
DATA-INTO.
Tks for the help!