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

filling my db2 table with cics


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ravi30
Currently Banned

New User


Joined: 04 Oct 2007
Posts: 10
Location: chennai

PostPosted: Mon Nov 26, 2007 7:59 pm
Reply with quote

i have adb2 table and need to move data entered on a map to the table.
i was able to move everything except the first 2 letters or characters from every field! simlply couldnt understand why? i have checked my code and there are no overlapping fields!
like when i enter
id- a1234
name - rahul
place -london
father- prakash
i see my table as
id name place father
234 hul ndon akash

i.e the first 2 characters of all the fields are not in my table

can anyone guess what the probs would be?
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Mon Nov 26, 2007 8:15 pm
Reply with quote

ravi30 wrote:
i have adb2 table and need to move data entered on a map to the table.
i was able to move everything except the first 2 letters or characters from every field! simlply couldnt understand why? i have checked my code and there are no overlapping fields!
like when i enter
id- a1234
name - rahul
place -london
father- prakash
i see my table as
id name place father
234 hul ndon akash

i.e the first 2 characters of all the fields are not in my table

can anyone guess what the probs would be?


Are the fields defined as VarChar?
Back to top
View user's profile Send private message
ravi30
Currently Banned

New User


Joined: 04 Oct 2007
Posts: 10
Location: chennai

PostPosted: Mon Nov 26, 2007 10:39 pm
Reply with quote

yes it has fields with varchar! so is there any problem with it!
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Mon Nov 26, 2007 10:41 pm
Reply with quote

ravi30 wrote:
yes it has fields with varchar! so is there any problem with it!
varying char field has the length in the first 2 bytes followed by the data. Look in the DB2 Manuals.
Back to top
View user's profile Send private message
ravi30
Currently Banned

New User


Joined: 04 Oct 2007
Posts: 10
Location: chennai

PostPosted: Mon Nov 26, 2007 10:45 pm
Reply with quote

oh thanks for the very answer craq.
actually i have only varchar and integer fields in my table and as u said if varchar has the length in the first 2 bytes then what about integers craq
im missing them even for the phone numbers and pincode fields i enter!
Back to top
View user's profile Send private message
fayazbashask

New User


Joined: 28 Jun 2007
Posts: 9
Location: Hyderabad

PostPosted: Tue Nov 27, 2007 11:50 am
Reply with quote

Hi,
the first thing you can check with length and your picture clauses.

The next but important thing is you might have not given the TIOAPFX=YES in your map, this also causes this type of problems

Regards,
Fayaz
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 -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
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 Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top