View previous topic :: View next topic
|
Author |
Message |
mformainframe
New User
Joined: 29 Dec 2003 Posts: 1
|
|
|
|
Hi everyone,
Can u please help me in this issue?
What is The COBOL equivalent VARCHAR(130) ?????
It was asked in the interview???
Thanx in advance...
mformainframe |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi M,
You define it this way:
Code: |
05 var-fld.
49 vf-len pic s9(004) comp.
49 vf-text pic x(150).
|
If you are creating the field, you must move the TRUE length of the field to vf-len as well as moving the data to vf-text. To retreive the data use a reference modified MOVE using vf-len as the length modifier.
Since the ques you asked is rudimentary, I'd suggest you do some research before you use VARCHAR. There are some performance hits you can run into, as well as some processing peculiarities.
Regards, Jack. |
|
Back to top |
|
|
prabe
New User
Joined: 09 Mar 2007 Posts: 17 Location: kerala
|
|
|
|
Can U explain clearly why we use 05th group varible and 49th elementary varible.
can you explain , why Vf-textis 150?. can we use 130 there? |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
Back to top |
|
|
|