IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to load the low values into DB2 table


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vvgoud

New User


Joined: 16 Aug 2007
Posts: 27
Location: Hyderabad

PostPosted: Fri Sep 19, 2008 11:17 pm
Reply with quote

Hi,

How to load the low values into DB2 table?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Sep 19, 2008 11:26 pm
Reply with quote

Hi,

Check the link..

publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.db29.doc.admin/db2z_howloadtables.htm

If you are looking for something specific, please explain little more about your query.
Back to top
View user's profile Send private message
vvgoud

New User


Joined: 16 Aug 2007
Posts: 27
Location: Hyderabad

PostPosted: Sat Sep 20, 2008 4:16 am
Reply with quote

My program is checking the first row of 2 fields are low values are in the DB2 table see below DB2 data, while testing i have to load the same data to test so how to load the below dotted low values(.....).
Code:

DLRNO      ORDERNO       RDTE      
CHAR(5)     CHAR(7)                        DATE     
-------     --------     ----------     --------
.....       .......      01/01/0001   
02010       0617797      07/28/2005
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Sep 20, 2008 5:39 am
Reply with quote

Hello,

Are loading your test data via a program doing INSERTs or do you have a qsam file to load from?

If you are using a program with INSERTs, move low-values to the dlrno and orderno ws variables before the INSERT.

If you have a qsam file, edit the file, use HEX ON and enter the hex zeros (which are low-values) for those 2 fields.

I tried to align your data post and have hopefully not changed it. I also deleted some replies that had gotten away from your question.
Back to top
View user's profile Send private message
vvgoud

New User


Joined: 16 Aug 2007
Posts: 27
Location: Hyderabad

PostPosted: Mon Sep 22, 2008 10:12 pm
Reply with quote

Hi Dick,

Thanks so much for your response.

We have to insert the Low values to DB2 table through insert statement to test database, not using any program and not using any Qsam file.

Thanks in advance
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Sep 22, 2008 11:38 pm
Reply with quote

Hello,

Quote:
We have to insert the Low values to DB2 table through insert statement to test database, not using any program and not using any Qsam file.
Whoever made that requirement should not be providing requirements or technical direction. . . If you need to add some rows, you need to add some rows with whatever tools you have/are told about. . . Had you been permitted to use what you learned, you would have had test data 2/3 days ago. . .

Anyway, you can probably do what you want using a hex-constant (x'0000000000') etc. You could probably edit your query in hex and put in the value that way as well.
Back to top
View user's profile Send private message
vvgoud

New User


Joined: 16 Aug 2007
Posts: 27
Location: Hyderabad

PostPosted: Tue Sep 23, 2008 1:10 am
Reply with quote

Thanks Dick for your quick response,
I will try with this and let you know if still doesn't work.

Thanks.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Sep 23, 2008 1:51 am
Reply with quote

Hello,

You're welcome.

Quote:
I will try with this and let you know if still doesn't work.
Or if it does, please icon_smile.gif

d
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts How to load to DB2 with column level ... DB2 6
Search our Forums:

Back to Top