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 is interval control?
What is non-conventional programs?
Can you define commarea?
the dfhcommara is used to pass information from one application to another. What are some other ways that this function can be accomplished?
Explain the primary function of the processing program table (ppt)?
define the field with ic in the bms map.
what are the commands used to gain exclusive control over a resource?
Explain cedf transaction commands?
What is dynamic transaction backout?
Define an asra abend?
which cics command must be issued by the application program in order to gain access to the common work area (cwa)?
Mention the option used in a cics command to retrieve the response code after execution of the command?
Define transient data?
Explain difference between call and link?
What is the use of tdq and tsq?