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

To display or unload VARGRAPHIC data


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

New User


Joined: 15 Aug 2009
Posts: 29
Location: Chennai

PostPosted: Fri Aug 24, 2012 8:45 pm
Reply with quote

Hi i am unable to unload VARGRAPHIC data..

When i use the below query :

Code:
  SELECT SRC_SYS_ACRNM,                     
         SRC_AFLTN_CD,                       
         ACCT_ID_NO,                         
         MST_CUST_NM                         
  FROM Z1EP001$.CIM_STG_CUST_CFSC_ML         
  FETCH FIRST 5 ROWS ONLY                   
          ;                         


Note : MST_CUST_NM --> VARGRAPHIC Datatype

I am facing below error

Code:
CFSC           UNISON        100003           .........                   
DSNT400I SQLCODE = 000,  SUCCESSFUL EXECUTION                             
DSNT418I SQLSTATE   = 01517 SQLSTATE RETURN CODE                           
DSNT415I SQLERRP    = DSN SQL PROCEDURE DETECTING ERROR                   
DSNT416I SQLERRD    = 0 0  0  -1  0  0 SQL DIAGNOSTIC INFORMATION         
DSNT416I SQLERRD    = X'00000000'  X'00000000'  X'00000000'  X'FFFFFFFF'   
         X'00000000'  X'00000000' SQL DIAGNOSTIC INFORMATION               
DSNT417I SQLWARN0-5 = W,,,,, SQL WARNINGS                                 
DSNT417I SQLWARN6-A = ,,W,,   SQL WARNINGS                                 
CFSC           UNISON        100004           ...(....) 

DSNT400I SQLCODE = 000,  SUCCESSFUL EXECUTION           
DSNT418I SQLSTATE   = 01517 SQLSTATE RETURN CODE



Even SQL Code is ).. i could nt see any data...
=======================
if i remove the VARGRAPHIC column and if try to execute below query the query completes successful and i am able to see data..

Is there any special key word i need to add in SQL query to see VARGRAPHIC Data...

Please Suggest

Code'd
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Fri Aug 24, 2012 8:59 pm
Reply with quote

Are you using the correct CCSID?
Back to top
View user's profile Send private message
lagneshp

New User


Joined: 15 Aug 2009
Posts: 29
Location: Chennai

PostPosted: Fri Aug 24, 2012 9:07 pm
Reply with quote

When I checked CCSID for the column i got the below:

---------+---------+---------+--
FOREIGNKEY CCSID
---------+---------+---------+--
S 37
S 37
S 37
1200
S 37

Please suggest me where and how i need to use this in my SQL to see VARGRAPHIC data..
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 Store the data for fixed length COBOL Programming 1
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Remote Unload of CLOB Columns DB2 6
Search our Forums:

Back to Top