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
Explain the difference between tsq and tdq
How can you access esds files from cics?
Explain the difference between exec cics handle condtion and an exec cics ignore command?
What is program reentrance?
Can a CICS code be a part of a copybook? If so, then what are the outcomes after compilation?
Highlight the points of differences between XCTL and START?
What are the cics transactions?
Can you define ppt and what are its uses?
Explain ceci transaction commands?
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?
What is the term bms in cics?
What are the common tables in cics and their usage?
Explain the difference between a package and a plan.
Can you explain multitasking and multithreading?
Give the definition of COMMAREA ?