Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


define comp?

Answers were Sorted based on User's Feedback



define comp?..

Answer / syam

"COMP" in Cobol = Binary storage format(if -ve bit is ON,
if +ve bit is OFF)
COMP-1 = Single precision floating point. Uses 4 bytes.
COMP-2 = Double precision floating point. Uses 8 bytes.
COMP-3 = packed decimal format. Uses 4 bytes.


Example 01 WS-VAR USAGE COMP-1.

Is This Answer Correct ?    3 Yes 0 No

define comp?..

Answer / syam

COMP = Compare in RPG, to compare two fields value.

AA = 01
BB = 02


C AA COMP 01 99 (found)
C BB COMP AA 99 (not found)

99 = on not found
99 = off found



Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More COBOL400 Interview Questions

what is the difference between comp & comp-3?

4 Answers  


Define perform? And its types?

0 Answers  


why icetool be used in programmer view?

0 Answers  


Deleting a record from a Sequential file.

2 Answers   Polaris,


What are Fillers ? What is the actual use of Fillers ? With small/simple Example..

1 Answers   Patni,


How can i change the below code in SQL to cobol/400? EXEC SQL SELECT COUNT(*) INTO : WS-COUNT FROM Db file WHERE Field 1 = : WS-VAR AND Field 2 = : WS-USERID END-EXEC * EVALUATE TRUE WHEN SQLCODE = +000 MOVE WS-COUNT TO Copybook field WHEN SQLCODE = +100 MOVE ZEROES TO Copybook field

2 Answers  


How we can update data area in cobol 400 program?

12 Answers   Accenture,


How can i change the below code in SQL to cobol/400? EXEC SQL SELECT COUNT(*) INTO : WS-COUNT FROM Db file WHERE Field 1 = : WS-VAR AND Field 2 = : WS-USERID END-EXEC

2 Answers   HP,


How to detect record is locked in cobol/400? What is the solution for that?

0 Answers  


Arrays in COBOL/400

2 Answers   Polaris,


what is the cobol compiler?

2 Answers   TCS,


How to Convert 2010/02/11 to m/dd/yyy.. with string and without string if any other method... code

5 Answers   CGI,


Categories