Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

I just want to ask why does the variable I passed in a
dclgen of sql that has a data type of varchar which has a
maximum length is 250 is truncated,,

Here is the code..

DCLGEN of rsauud01 table
01 dataarea
43 data-area-len pic s9(4).
43 data-area-text pic x(250).
MYVARIABLE.
01 DATAAREA1 pic x(250).

move 250 to data-area-len of dataarea of rsauud01
MOVE DATA-AREA1 TO data-area-text of dataarea of rsauud01

---
but it is always trucated everytime I insert it in the table
by the way it is a cobol-cics program

Answer Posted / anna

the variable shoud be under level 49 and pic comp.
01 dataarea.

49 data-area-len pic s9(4) comp.
49 data-area-text pic x(250).

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are transient data sets defined to cics?

1242


Define the term function request shipping?

1068


Highlight the points of differences between XCTL and START?

1308


Differentiate between PCT and FCT.

1228


With the use of an alternate index, how is a VSAM file accessed?

1143


Explain how do you establish a starting position in a browse operation?

1111


What does the 'cedf:cics' transactions do?

1098


What is bms map?

1277


Define floating maps with illustration?

1051


For protecting a transaction using the transaction security function, the two things that must be done are?

2402


Explain the use of DCT ?

1119


Let us say you have a collection of multiple maps in cics. So if you are asked to determine the exact storage space that is available in a symbolicmap, then how will you compute it?

1178


Name some translator and compile options and explain their meaning?

2897


How is Telon(CA-Telon) used to build map?

4671


when a task suspends all the handle conditions via the push command, how does the task reactivate all the handle conditions?

1220