Why VARCHAR item in COBOL must be defined at 49 level?

2 posts / 0 new
Last post
Anonymous
Why VARCHAR item in COBOL must be defined at 49 level?

 

I have noticed that to use a varchar data in a cobol db2 program the length and text part of varchar must be defined at level 49.
 
But I really could not understand why we have this limitation? 
 
Seeking for an explanation
"; ; ; ;
Anonymous
The Level 49 structure

The Level 49 structure contains two fields. 
one to contain the data, and one to contain the length of the data

If not declared in 49 then it can issues

This is the rule for converting varchar in Cobol

Log in or register to post comments
Sponsored Listing