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...

what if any ,is the syntex error in the following piece of code
01 B PIC A(7)
02 C PIC 9(4)
........
IF(B NUMERIC)
ADD 10 TO C
a.the condition in the if statement is wrong
b.noting is wrong
c.because C is initialised.ADD 10 TO C is wrong
d.both B and C shoud have same size.

Answer Posted / vish

the syntax is wrong..a couple of mistakes...

1. The level of C is 02 which means it is a sublevel of B.
hat being the case B becomes the group level item and hence
the PIC clause for B is invalid.

2. The conditional statement is wrong, correct sysntax can
be either ib below:
IF (B IS NUMERIC)
ADD 10 TO C

IF B IS NUMERIC
ADD 10 TO C

Basically 'IS' is missing from the statement.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

) How do u handle errors in BMS macro?

1976


How to use the same COBOL program in Batch and CICS on lines? explain with an example

2397


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

1233


Define cobol?

1412


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

2113


What is the difference between a binary search and a sequential search what are the pertinent cobol?

1144


Why did you choose to work with ibm mainframe cobol programming?

1115


What is the default value(s) for an initialize and what keyword allows for an override of the default?

1214


What is the difference between PIC 9.99 and PIC9v99?

1342


what is the use of outrecord?

2223


What are declaratives and what are their uses in cobol?

1205


Can you please let me know the centre name of INS certification in Kolkata.

2248


Name the sections present in data division.

1251


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2435


What is the problem of ordered sequential files access?

1168