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
Highlight the difference between a symbolic map and physical map?
Name the three ways available for a program to position the cursor on the screen?
What is CICS ?
Explain how do you access storage outside your cics program?
Explain how do you set the mdt option to on status, even if data is not entered?
Explain what is the massinsert option?
Define an aica abend?
How can you access esds files from cics?
Sync points cannot be requested by the application programs? State true or false
What are some of the cics commands associated with interval control?
What are the uses of ppt in cics?
Kindly specify the pic clause for the hhmmss type of data fields?
Define the term mro (multi region operation)?
When would you use abend command?
Can you define transid?