created cluster using IDCAMS ..that is empty ..when i write a
program for read using Input ..wil it open the cluster or
gives any error?
Answers were Sorted based on User's Feedback
Answer / pramod
Open statement itself fails when u try to open an empty
file.
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / ganesh
writing the vsam file using the input modeis not possible
as system will find the file as empty and will throw error
that file can not be opened but yes you can write the file
using the outout mode.
| Is This Answer Correct ? | 2 Yes | 0 No |
How to covert given string into ASCII value in COBOL/MF COBOL
Please let me know how the Eject verb works for page break.. I want to know the code, how it is used.
What is JOBLIB and STEPLIB in JCL? what is the purpose of using it?
What is report-item?
How to execute a set of JCL statements from a COBOL program?
Which of the following EDITind and PICTURE symbols is to be used if a minus(-) is to appear before the value if the value is -ve and a plus(+) is to appear before the value if the value is +ve? (a) + (b) - (c) + OR (d) It is not possible
How many divisions we have in Cobol ?
in how many mode we can open a file ?
what is index and how to use two tables using index?
Can we call a CICS program from a batch program or viceversa?If so, how?
ID DIVISION. PROGRAM-ID. PLO. DATA DIVISION. WORKING-STORAGE SECTION. 01 VAR1 PIC 9(2). 01 VAR2 PIC X(2). PROCEDURE DIVISION. ACCEPT VAR2. MOVE VAR2 TO VAR1. STOP RUN. if i give 'PI' in var2 then what will b output of progr. any abend?????
What guidelines should be followed to write a structured cobol prgm?