Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

filling my db2 table with cics

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: filling my db2 table with cics
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    Post subject: Re: filling my db2 table with cics
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject: Reply to: filling my db2 table with cics
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts How to Clear all TSQs during CICS sta... Hooman24 CICS 10 Mon Jun 26, 2017 9:46 pm
No new posts CICS Transaction attach count of supp... lind sh CICS 1 Wed Jun 21, 2017 1:33 pm
No new posts unload data from table with lob columns farhad_evan DB2 1 Sat Apr 22, 2017 1:32 pm
No new posts CICS Transaction Timeout Hooman24 CICS 2 Sun Apr 16, 2017 2:16 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us