MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem loading VARCHAR fields using DSNUTILB

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
Dip
Beginner


Joined: 24 Mar 2006
Posts: 27
Topics: 14

PostPosted: Wed May 09, 2007 2:24 am    Post subject: Problem loading VARCHAR fields using DSNUTILB Reply with quote

I am using DSNUTILB utility to load a table from a file.
Load control card is created from the extracted SYSPUNCH

Input file
----------

Field1 Field2 (varchar)

222 abcd

After loading the value In the table
------------------------------------

Field1 Field2 (varchar)
----------- -----------------
222 


select field2, hex(field2) from MY TABLE where field1 = 222;

FIELD2 hex(FIELD2)
----------------------------------- -----------------------------------
 D1C9C2C1

In the LOAD control card the defination of field2 is

"FIELD2 " POSITION( X:Y ) VARCHAR MIXED

(i am not very sure about the Keyword MIXED here. This is the way i got it in the SYSPUNCH)


Basically the table is getting loaded with the Hex format data from the file.
Do i need to change anything in the LOAD control card before loading the data?

Thnx
-Dip
Back to top
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed May 09, 2007 4:51 am    Post subject: Reply with quote

Dip,

The fielld2 column contains DBCS data. MIXED Specifies that the input field contains mixed DBCS data. If MIXED is specified, then any required CCSID conversions use the mixed CCSID for the input data; if MIXED is not specified, then any such conversions will use the SBCS CCSID for the input data.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group