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 / virender
I think Anna level number 49 does not matter here. I think
the problem is because of using "of dataarea of rsauud01"
with the move statement.
Just use
move 250 to data-area-len
MOVE DATA-AREA1 TO data-area-text
Please let me know if it worked.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
how do you fire a batch job from a cics txn ?
What is the kcp in the cics?
Explain cebr transaction commands?
Explain how DSECT parameter is used in BMS ?
Is length = 0 sufficient to ascertain that the field has been modified?
Can you explain primary aspect of cics?
which cics service transaction is used to gain accessibility to cics control tables? Mention the one that has the highest priority.?
What is interval control?
How is Telon(CA-Telon) used to build map?
Explain cemt transaction commands?
Can you define commarea?
cics command level is?
Can you define attribute byte?
Kindly specify the pic clause for the hhmmss type of data fields?
Name the two types of transient data queues?