Focal Point
CHAR to ALPHANUMERIC

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5151016352

October 24, 2007, 01:58 PM
<Umar Farook S>
CHAR to ALPHANUMERIC
Hi
I like to know how can i convert a CHAR field to AlphaNumeric field or VarChar field.
October 24, 2007, 02:10 PM
Darin Lee
a CHAR field IS an alphanumeric. CHAR(10) = A10, VARCHAR(10) = A10V


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
October 24, 2007, 02:31 PM
Leah
As to converting, you can use a define or a compute. As Darin says they are alphanumeric.


Leah
October 24, 2007, 02:34 PM
<Umar Farook S>
So i am in the process of doing MATCH between 2 HOLD files with key fields in one file having CHAR and in another file having AplhaNumeric formats.
October 24, 2007, 06:52 PM
GinnyJakes
I think the answer has already been given. Use a DEFINE and set up an equality to convert what I think you are calling alphanumeric but really mean varchar (that's the format with the V that Darin refers to) to a char, i.e. something without the V or vice versa.

FLD_C/A10='1234567890';
FLD_V/A10V=FLD_C;


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google