Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts COBOL Programming Sandpit? jodrisco COBOL Programming 6 Wed Apr 12, 2017 3:47 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us