neelus.s
New User
Joined: 05 Apr 2007 Posts: 4 Location: Minneapolis
|
|
|
|
Hi All,
I have a variable length PS file in which data is comma seperated. The data in this file has to be loaded into DB2 table.
Note: Some of the fields in this file are not having data.
Sample file:
00603,PR,Aguadilla,,Agu,18.25460052,-67.09100342
00604,PR,Aguadilla,,Agu,18.25460052,-67.09100342
00605,PR,Aguadilla,,Agu,18.25460052,-67.09100342
00607,PR,Aguas Buenas,,Agu,18.15320015,-66.06099701
00608,PR,Aguirre,,Agu,0,0
00609,PR,Aibonito,,Aib,18.08309937,-66.15499878
00610,PR,Anasco,,Ana,18.1704998,-67.08200073
00611,PR,Angeles,,Ang,18.17130089,-66.47499847
00612,PR,Arecibo,,Are,18.28280067,-66.42500305
00613,PR,Arecibo,,Are,18.28280067,-66.42500305
00615,PR,Arroyo,,Arr,17.58040047,-66.03399658
00616,PR,Bajadero,,Baj,18.25429916,-66.41000366
there are 7 fields in the above file.
I will be using Platinum load JCL or IBM load JCL to load data into the table. Basically i want to format this file before loading the table. Also giving be the table structure below.
ZIP_C CHAR(5)
ST_C CHAR(2)
CITY_N VARCHAR(35)
CNTY_N CHAR(35)
CITY_ABBR_N VARCHAR(3)
LATTD_I FLOAT(8)
LNGTD_I FLOAT(8)
Expecting replies as sonn as possible as i am badly stuck in this problem
Regards,
Neelima |
|