.How to add one input & one Out file in existing cobol
program.
how approach tell me step by step.


Answer Posted / aniket potwekar

Add File-control para in environment division with select
clause for input and output file.Declare there organization
and access mode.
then in data division add file descriptor entry for each
file.These must be in file section.
Then use these files in procedure division.

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name the sections present in data division.

701


Which Search verb is equivalent to PERFORM…VARYING?

685


Write the code implementing the perform … varying.

644


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

686


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8160






Why is it necessary that file needs to be opened in I-O mode for REWRITE?

748


explain sorting techniques in cobol program?

687


how to convert the recors form vsam file to db2 table tru file aid

2763


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

717


Give some examples of command terminators?

757


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

709


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

777


What is the compute verb? How is it used?

659


how do you reference the printer file formats from cobol programs

661


What is report-item in COBOL?

711