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 eib, how is can be used?
How to establish dynamic cursor position on a map?
Which commend used for terminating a browser operation?
What is journal recovery?
Name the 3 common ways to create maps?
Explain how pa key is different from pf key?
Receive consists of buffer option in it. What is the significance of this option?
Can you explain communication area?
hi,what is the module? how many modules in mainframe based banking projects
How vsam files are read in cics pgms?
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 meant by MDT? Furthermore, comment on FRSET and FSET ?
What does the 'cemt:cics' transactions do?
What is the cics command that is used to access current date and time?
Explain the different system tables used in cics?