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 eib, how is can be used?

1099


How to establish dynamic cursor position on a map?

1066


Which commend used for terminating a browser operation?

991


What is journal recovery?

1041


Name the 3 common ways to create maps?

1131


Explain how pa key is different from pf key?

1149


Receive consists of buffer option in it. What is the significance of this option?

1043


Can you explain communication area?

1031


hi,what is the module? how many modules in mainframe based banking projects

2983


How vsam files are read in cics pgms?

1298


what is the difference between a package and a plan. How does one bind 2 versions of a cics transaction with the same module name in two different cics regions that share the same db2 subsystem?

1058


What is meant by MDT? Furthermore, comment on FRSET and FSET ?

1126


What does the 'cemt:cics' transactions do?

1197


What is the cics command that is used to access current date and time?

1115


Explain the different system tables used in cics?

1006