Varchar equivalent in cobol code



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Varchar equivalent in cobol code

Postby Nary » Mon Jun 22, 2009 7:24 pm

Hi,

I know that the VARCHAR equivalent in COBOL is splitted into length and text fields.
I wanted to know whether the two fields has to be declared only in 49 level or can i use any other level number?
If only 49, Please provide the explanation.


Thank you.
Nary
Nary
 
Posts: 8
Joined: Mon Jun 22, 2009 7:00 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Varchar equivalent in cobol code

 

Re: Varchar equivalent in cobol code

Postby dick scherrer » Mon Jun 22, 2009 11:25 pm

Hello and welcome to the forum,

If only 49, Please provide the explanation.
As far as i'm aware it must be 49.

The reason is because that is what the developers chose. Similar to why 77s are 77 and nothing else. . . Just rules we have to live with. . . :|
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Varchar equivalent in cobol code

Postby Nary » Wed Jun 24, 2009 11:06 am

Ok.
Thanks a lot.
Nary
 
Posts: 8
Joined: Mon Jun 22, 2009 7:00 pm
Has thanked: 0 time
Been thanked: 0 time


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post