Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Error in loading a dataset into DB2

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
chhabraravneet

New User


Joined: 04 Oct 2007
Posts: 49
Location: Mumbai

PostPosted: Thu Jul 19, 2012 1:51 am    Post subject: Error in loading a dataset into DB2
Reply with quote

Hi,
I am trying to load a flat file to db2 via db2 file-aid option 3.7, but geting a SOC4 abend..

Below is my table:
STATE_CODE CHAR(2)
CLASS_CODE CHAR(4)
RATE_IND CHAR(1)
RATE CHAR(5)
CL_SP1 CHAR(1)
CL_SP2 CHAR(1)
RT_SP CHAR(1)
MIN_PREM_SP CHAR(1)
DSCRPTR_CODE CHAR(2)
VALID_DATE CHAR(7)
DSCRPTN VC(2000)
STT_ABBRVTN CHAR(2)
**************************


Here is my control card for the file:
LOAD DATA RESUME YES INTO TABLE "QPLT002"."TPL_CLA_WC"
(STATE_CODE POSITION (1) CHAR (2) ,
CLASS_CODE POSITION (3) CHAR (4) ,
RATE_IND POSITION (7) CHAR (1) ,
RATE POSITION (8) CHAR (5) ,
CL_SP1 POSITION (13) CHAR (1) ,
CL_SP2 POSITION (14) CHAR (1) ,
RT_SP POSITION (15) CHAR (1) ,
MIN_PREM_SP POSITION (16) CHAR (1) ,
DSCRPTR_CODE POSITION (17) CHAR (2) ,
VALID_DATE POSITION (19) CHAR (7) ,
DSCRPTN POSITION (26) VARCHAR ,
STT_ABBRVTN POSITION (2028) CHAR (2) )


ON DEBUGGING I FOUND THAT THE DESCRIPTION FIELD OF VARCHAR (2000) IS HAVING SOME PROBLEM. AS FOR VARCHAR I SHOULD HAVE A DIFFERENT CONTROL CARD...
BECAUSE WHEN I LOADED A SINGLE RECORD FROM DB2 TO FLAT FILE..I GOT TWO .. (DOTS) IN VARCHAR FIELD...


ANY SUGGESTIONS ?
Back to top
View user's profile Send private message

Akatsukami

Global Moderator


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

PostPosted: Thu Jul 19, 2012 2:26 am    Post subject:
Reply with quote

You do realize that what appears to be a double dot is actually the halfword length descriptor for your VARCHAR field, yes?
Back to top
View user's profile Send private message
chhabraravneet

New User


Joined: 04 Oct 2007
Posts: 49
Location: Mumbai

PostPosted: Thu Jul 19, 2012 4:09 am    Post subject: Reply to: Error in loading a dataset into DB2
Reply with quote

I have done DB2 5 years back and now i have got a project to do it again.
my primary skills are:
Mainframe Skills: JCL, COBOL, IMS DB/DC.

Anyways..thanks for your reply..i will take your words... icon_smile.gif

will search in the forum...

Have a good one.
Back to top
View user's profile Send private message
Dsingh29

Active User


Joined: 16 Dec 2008
Posts: 132
Location: IBM

PostPosted: Thu Jul 19, 2012 2:28 pm    Post subject: Reply to: Error in loading a dataset into DB2
Reply with quote

Hi,

Make sure that all records in your flat file have some legitimate value for the length field of varchar.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Reply MQ open error Vignesh Sid COBOL Programming 5 Thu Sep 07, 2017 6:02 pm
No new posts Error in SQL-PLIST3 'Above value tru... rikdeb DB2 4 Wed Sep 06, 2017 1:34 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us