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
what are transient data sets defined to cics?
Define the term function request shipping?
Highlight the points of differences between XCTL and START?
Differentiate between PCT and FCT.
With the use of an alternate index, how is a VSAM file accessed?
Explain how do you establish a starting position in a browse operation?
What does the 'cedf:cics' transactions do?
What is bms map?
Define floating maps with illustration?
For protecting a transaction using the transaction security function, the two things that must be done are?
Explain the use of DCT ?
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?
Name some translator and compile options and explain their meaning?
How is Telon(CA-Telon) used to build map?
when a task suspends all the handle conditions via the push command, how does the task reactivate all the handle conditions?