I'm using the load utility in DB2 and am trying to import a flat file with fixed length fields.
The load goes fine however, I don't have a field on the file for the year that I am importing.
Is there any way I can hard-code or specify the year that I want when I import the data into the table?
Maybe I could specify this on a statement before my import?
I am running this from a command line.
Here's my import statement:
--------------------------------------------------
db2 "connect to bps"
db2 "load from Account.txt
of asc method L (1 3,5 6,8 22,24 100) messages msgs.txt insert into nysa.bp33t_dob_account (FUND_CODE, ACCT_TYPE, SHORT_NAME, LONG_NAME)"
-----------------------------------------------
Now, the first field I would like to be the year field.
In the table this is the BUDGET_YR field.
Is there any way to accomplish this?
Thanks in Advance.
John
The load goes fine however, I don't have a field on the file for the year that I am importing.
Is there any way I can hard-code or specify the year that I want when I import the data into the table?
Maybe I could specify this on a statement before my import?
I am running this from a command line.
Here's my import statement:
--------------------------------------------------
db2 "connect to bps"
db2 "load from Account.txt
of asc method L (1 3,5 6,8 22,24 100) messages msgs.txt insert into nysa.bp33t_dob_account (FUND_CODE, ACCT_TYPE, SHORT_NAME, LONG_NAME)"
-----------------------------------------------
Now, the first field I would like to be the year field.
In the table this is the BUDGET_YR field.
Is there any way to accomplish this?
Thanks in Advance.
John