Identify the invalid dataname from the following:
(A) savings-account
(B) annual-allocation-for-overhead
(C) samount250
(D) 12demand

Answers were Sorted based on User's Feedback



Identify the invalid dataname from the following: (A) savings-account (B) annual-allocation-fo..

Answer / elite group

d

Is This Answer Correct ?    16 Yes 0 No

Identify the invalid dataname from the following: (A) savings-account (B) annual-allocation-fo..

Answer / ajmal

Correct Answer is (d)

Dataname CANNOT start with a numeric value. Must start with
alphabet only.

Also dataname can contain a maximum of 30 characters.
Therefore (b) is correct.

Is This Answer Correct ?    4 Yes 0 No

Identify the invalid dataname from the following: (A) savings-account (B) annual-allocation-fo..

Answer / bhupendraprajapati

Answer is (D)

Is This Answer Correct ?    0 Yes 0 No

Identify the invalid dataname from the following: (A) savings-account (B) annual-allocation-fo..

Answer / prasanna

The answer is B because of the field restriction in COBOL..
only 8 chars are allowed..



Cporrect me if i am wrong

Is This Answer Correct ?    0 Yes 17 No

Post New Answer

More COBOL Interview Questions

What is a subscript ?

3 Answers  


Write a program to enter and display the names of students in a class using the occurs clause.

0 Answers  


What are the different data types available in COBOL?

4 Answers  


What is an explicit scope terminator?

3 Answers  


What are the situations u have used in ur project for Subcript and Index ? 1.if u use Subscript why not Index,why u choose Subscript only? 2.if u use Index why not Subscript,what abt Displacement?

2 Answers   Cap Gemini,






What are the differences between OS VS COBOL and VS COBOL II?

1 Answers   IBM,


What is SET TO TRUE all about, anyway?

5 Answers  


How to delete a front spaces in a data-name/variable in cobol Example:- 01 data-name-1 PIC x(20) value " cobol language". 01 data-name-2 PIC x(20). MOVE data-name-1 to data-name-2. would like the value of data-name-2 is "cobol language".

3 Answers  


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

0 Answers  


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

0 Answers   HCL,


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

0 Answers   Steria,


period is missing in the cobol program which error we getting

5 Answers   TCS, Tesco,


Categories