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 / shri

Field 'B' is a group level field (Since field 'C' is
defined under it at 02 level. Now field 'B' being a group
level field cannot have PIC clause. This is first syntex
error.
Further the condition IF (B Numeric) is not a system error
and is a correct cobol statement

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

1379


What is the difference between goback, stop run and exit program in cobol?

1647


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5793


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

4210


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

1147


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

1298


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

2605


How do u write test cases?

2111


example for sub strings ? and refernce modifications whit output pls

2368


How do we get current date from system with century in COBOL?

1423


how do you reference the variable unblock file formats from cobol programs

1380


Explain about different table spaces.

1155


What is a scope terminator give example?

1155


What is the utilization of copybook in cobol?

1273


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

1268