<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>comp4 - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/comp4/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/comp4/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Thu, 09 Sep 2021 06:27:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>comp4 - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/comp4/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What is the difference between comp and comp-3 usage ?</title>
		<link>https://www.wikitechy.com/interview-questions/cobol/what-is-the-difference-between-comp-and-comp-3-usage/</link>
					<comments>https://www.wikitechy.com/interview-questions/cobol/what-is-the-difference-between-comp-and-comp-3-usage/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 19 Jul 2021 10:08:14 +0000</pubDate>
				<category><![CDATA[cobol]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Atos interview questions and answers]]></category>
		<category><![CDATA[Capgemini interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[CGI Group Inc interview questions and answers]]></category>
		<category><![CDATA[Ciena Corporation interview questions and answers]]></category>
		<category><![CDATA[cobol binary data type]]></category>
		<category><![CDATA[cobol comp 3 sign]]></category>
		<category><![CDATA[cobol comp 3 to numeric]]></category>
		<category><![CDATA[Collabera Technologies interview questions and answers]]></category>
		<category><![CDATA[comp]]></category>
		<category><![CDATA[comp 1]]></category>
		<category><![CDATA[comp 2]]></category>
		<category><![CDATA[comp cobol]]></category>
		<category><![CDATA[comp data type in cobol]]></category>
		<category><![CDATA[comp fields in cobol]]></category>
		<category><![CDATA[comp in cobol]]></category>
		<category><![CDATA[comp in cobol with example]]></category>
		<category><![CDATA[comp in cobol with examples]]></category>
		<category><![CDATA[comp in mainframe]]></category>
		<category><![CDATA[comp one]]></category>
		<category><![CDATA[comp storage in cobol]]></category>
		<category><![CDATA[comp values in cobol]]></category>
		<category><![CDATA[comp-1 example in cobol]]></category>
		<category><![CDATA[comp-3 converter]]></category>
		<category><![CDATA[comp1 comp2 comp3]]></category>
		<category><![CDATA[comp3]]></category>
		<category><![CDATA[comp4]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[FIS Global Business Solutions India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[how to display comp variables in cobol]]></category>
		<category><![CDATA[how to display comp-3 variable in cobol]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[Infosys Technologies interview questions and answers]]></category>
		<category><![CDATA[Mavenir interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[Opentext Technologies interview questions and answers]]></category>
		<category><![CDATA[Oracle Corporation interview questions and answers]]></category>
		<category><![CDATA[packed decimal in cobol]]></category>
		<category><![CDATA[packed decimal to numeric conversion in cobol]]></category>
		<category><![CDATA[Persistent Systems interview questions and answers]]></category>
		<category><![CDATA[RBS India Development Centre Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[s9(4) comp how many bytes]]></category>
		<category><![CDATA[s9(4) comp-3 how many bytes]]></category>
		<category><![CDATA[SAP Labs India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[should have usage display]]></category>
		<category><![CDATA[Societe Generale Global Solution Center interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[types of usage clause in cobol]]></category>
		<category><![CDATA[UnitedHealth Group interview questions and answers]]></category>
		<category><![CDATA[usage binary in cobol]]></category>
		<category><![CDATA[usage clause in cobol]]></category>
		<category><![CDATA[usage is display in cobol]]></category>
		<category><![CDATA[Virtusa Consulting Services Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Wells Fargo interview questions and answers]]></category>
		<category><![CDATA[when to use comp and comp3 in cobol]]></category>
		<category><![CDATA[when to use comp in cobol]]></category>
		<category><![CDATA[Wipro Infote interview questions and answers]]></category>
		<category><![CDATA[xansa interview questions and answers]]></category>
		<category><![CDATA[Xoriant Solutions Pvt Ltd interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=1033</guid>

					<description><![CDATA[Answer : COMP is 2 bytes.COMP-3 is 8 bytes...]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="comp" class="color-pink" style="text-align: justify;"><span style="font-family: inherit; font-size: 2rem;">Comp :</span></h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>COMP is 2 bytes.</li>
<li>COMP is used for Binary Representation it allows only S and 9.</li>
<li>COMP stores the data in the binary format.</li>
<li>With COMP fields, you have to drag out a calculator and convert the hex value to find out the true value that is being used in a program.</li>
<li>Memory usage is,
<ul>s9(5)-s9(9) &#8211; 4bytes</ul>
<ul>s9(1)-s9(4) &#8211; 2bytes</ul>
<ul>s9(10)-s9(18) &#8211; 8bytes</ul>
</li>
</ul>
</div>
</div>
<div class="text-center row" style="text-align: justify;"></div>
<div class="subheading" style="text-align: justify;">
<h2 id="comp-3" class="color-blue">Comp-3</h2>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>COMP-3 is 8 bytes.</li>
<li>Comp-3 is used for Packed Decimal values it allows S 9 V mostly it is useful for Decimal Calculation Values.</li>
<li>COMP-3 stores the data in the BCD(Binary Coded Decimal)format.</li>
<li>It is used to avoid rounding issues that occur when binary numbers are used to represent decimal fractions.</li>
<li>This is particularly vital in systems that method massive volumes of economic transactions/amounts</li>
<li>Memory usage is
<ul>
<li style="list-style-type: none;">
<ul>n/2 + 1 (Even)</ul>
</li>
</ul>
<ul>n+1/2 (odd)</ul>
</li>
</ul>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="example">Example :</h2>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Banking, Credit cards, etc.</li>
</ul>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="other-cobol-usages">Other cobol usages :</h2>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li style="text-align: justify;">The usage clause specifies how the data item being stored internally .If no usage clause specified , the default usage clause would Usage is display</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/cobol/what-is-the-difference-between-comp-and-comp-3-usage/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
