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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
What are the two ways of breaking a CPU bound process to allow other tasks to gain access to CPU.
What is a transid and explain the system transid CEMT?
What RCT Entries will you make for a CICS DB2 program??
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?
How can you start a CICS transaction other than by keying the Transaction ID at the terminal?
Explain the difference between temporary storage queue (tsq) and transient data quene (tdq)?
What are the ways fot initiating a transaction?
Can you explain common systems area?
What does EIB mean?
What are the two outputs created as a result of generation of a map?
WHEN I TRIGGER A TRANSACTION (COBOL-CICS-DB2 PROGRAM)WHAT IS THE EXECUTION? (I MEAN THE PURPOSE OF CICS-CONTROL TABLES &CONTROL PROGRAMS)
What is Tclass in cics?what is its importance? How it is implemented?