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 |
where do u use low-value and high value in cobol
What is JOBLIB and STEPLIB in JCL? what is the purpose of using it?
In which area will you utilize 88 level items in cobol?
State the various causes of s0c1, s0c5 and s0c7.
WHY LRECL NEEDS TO BE 4 EXTRA THEN THE COBOL FILE LENGTH & WHAT IT CONTAIN IN THAT LENGTH
What is the point of the REPLACING option of a copy statement?
IF I mention stop run in CICS what happens?
How can i write a comp-3 variable into a sequential file should i declara the field in the file description as comp- 3?
How can I find the maximum value of a field in a file while reading the file dynamically? without using sort function. Suppose i have a file with fields Timestamp, description, teamname, teamnumber.. i have read the file till end and find the maximun value of timestamp which is not in sorted order.. can we use function max(timestamp)?
What is an index for tables?
Read a flat file and write last but one (I have n records in a file I have to write n-1th) record in another flat file. Could you please provide me the code in COBOL?
Will the variable POS in the following code have a value of 2 or not? 01 POS PIC S9(4) COMP VALUE 2. 01 FIRST-NAME PIC X(10) VALUE 'ABC'. 01 LAST-NAME PIC X(10) VALUE 'XYZ'. 01 NAME PIC X(20) VALUE SPACES. STRING FIRST-NAME DELIMITED BY SPACES ' ' DELIMITED BY SIZE LAST-NAME DELIMITED BY SPACES INTO NAME WITH POINTER POS