How can you declare the file ?



How can you declare the file ?..

Answer / g.naveen

ENVIRONMENT DIVISION.
FILE-CONTROL.
SELECT FILE1 ASSIGN TO DISK1.

Is This Answer Correct ?    12 Yes 0 No

Post New Answer

More COBOL Interview Questions

How is sign stored in a comp-3 field?

7 Answers  


IDENTIFICATION DIVISION. PROGRAM-ID. MOVEPGM. DATA DIVISION. WORKING-STORAGE SECTION. 01 WS-I PIC 9(2). PROCEDURE DIVISION. A1000-MAIN-PARA. PERFORM PARA-X WITH TEST BEFORE UNTIL WS-I= 5 STOP RUN. PARA-X. DISPLAY "BEST2". I m getting error s722,while executing the program, seems getting in loop, can anybody tell me why

3 Answers  


Can we put move statement in COBOL copybook

3 Answers   Global Logic,


how to submit a jcl by cobol program. clear me with an example.

3 Answers   HCL,


How to read records from flat file in reverse order through COBOL program?

14 Answers   Accenture, Broadridge, IBM, MAT, Polaris, SPIC, Syntel, TCS, Wipro,






What is perform what is varying?

0 Answers  


How many bytes S(8) comp field occupy and its maximum value?

0 Answers  


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

4 Answers   TCS,


IF I mention stop run in CICS what happens?

0 Answers   IBM,


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

0 Answers  


01 var1 pic x(10) 01 var2 redefines var1 pic 9(10). then in procedure division move 'abcde' to var1 then waht is the value of var1 and var2

9 Answers   HSBC,


When is a scope terminator mandatory?

3 Answers  


Categories