Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
What is The COBOL equivalent VARCHAR(130)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
mformainframe

New User


Joined: 29 Dec 2003
Posts: 1

PostPosted: Mon Dec 29, 2003 3:24 pm    Post subject: What is The COBOL equivalent VARCHAR(130)
Reply with quote

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
View user's profile Send private message

mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue Dec 30, 2003 1:53 am    Post subject:
Reply with quote

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
View user's profile Send private message
prabe

New User


Joined: 09 Mar 2007
Posts: 17
Location: kerala

PostPosted: Fri Mar 09, 2007 10:40 am    Post subject: Re: What is The COBOL equivalent VARCHAR(130) ?????
Reply with quote

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
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 686
Location: Earth

PostPosted: Fri Mar 09, 2007 11:57 am    Post subject: Re: What is The COBOL equivalent VARCHAR(130) ?????
Reply with quote

prabe wrote:
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?


See the link below for the first question:
http://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp?topic=/rzajp/rzajpequivsqlcobol.htm


For second question:
Yes! You can use 130.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Linkage editor is part of COBOL, z/OS... ankit.jain COBOL Programming 4 Fri Apr 20, 2018 4:17 pm
This topic is locked: you cannot edit posts or make replies. Difference between EQUAL and EQUAL TO... jithinraghavan COBOL Programming 3 Thu Apr 19, 2018 2:22 am
No new posts Call COBOL or PLI with a click from w... vaibhav gs All Other Mainframe Topics 1 Mon Apr 16, 2018 7:29 pm
No new posts COBOL MVS options BiswajitDG COBOL Programming 8 Fri Apr 06, 2018 12:35 am
No new posts batch cobol/db2 paragraph fall thru a... alois eisshofer COBOL Programming 5 Wed Mar 14, 2018 12:21 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us