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 is interval control?

1135


What is non-conventional programs?

1087


Can you define commarea?

984


the dfhcommara is used to pass information from one application to another. What are some other ways that this function can be accomplished?

1155


Explain the primary function of the processing program table (ppt)?

996


define the field with ic in the bms map.

1131


what are the commands used to gain exclusive control over a resource?

1222


Explain cedf transaction commands?

1147


What is dynamic transaction backout?

1136


Define an asra abend?

1079


which cics command must be issued by the application program in order to gain access to the common work area (cwa)?

1139


Mention the option used in a cics command to retrieve the response code after execution of the command?

1106


Define transient data?

1042


Explain difference between call and link?

1107


What is the use of tdq and tsq?

1113