PDA

View Full Version : QLGCNVCS



Guest.Visitor
01-01-1995, 02:00 AM
Does anyone have any sample code they could post using API QLGCNVCS in a rpg ile program ? I'm trying to use this api in a rpg ile progam and am getting error message CPF3BEC. I'm trying to convert the data to upper case. I'm specifying my request type as 1 (CCSID) format, CCSID of my input data is 0, and the case request as 0. Thanks in advance.

Guest.Visitor
09-27-2000, 10:58 AM
As CPF3BEC indicates the value for the reserved field is not valid did you MOVE *LOVAL to the 10 character reserved field of the Request Control Block? If you are using QSYSINC/QRPGLESRC(QLG) this would be field QLGERVED04. If that doesn't do it, I could send you a small sample program if you supply your address.

Guest.Visitor
09-28-2000, 04:09 AM
Thanks Bruce. The *loval move solved my problem. The field description for reserved, in the API reference manual, is '...field that must be to hexadecimal zeros.' Since there are two possible reserved fields, one character and the other binary, I was assuming the description applied to the numeric field and did not realize it also applied to the character field. Thanks again.