In a file(PS), we dont know how many records are there.
requirement is divide half n half the records n insert into
2 another files(PS).
Answers were Sorted based on User's Feedback
Answer / shaan
Use Sort program to count the no of records and then sent
half of them to a PS file using sort fields=copy with
skiprec and stopaft command.
| Is This Answer Correct ? | 18 Yes | 3 No |
Answer / kk
Write a cobol program with an Index and read the input file
and write to two files based on alternative records.
| Is This Answer Correct ? | 1 Yes | 4 No |
What is a path?
name a few common vsam status codes?
In a KSDS file, key is missing for one record. How to insert the key for that particular record from back up file. Is there any sorting needed for the back up file before the key insertion?
OPEN INPUT StudentFile READ StudentFile AT END SET EndOfStudentFile TO TRUE END-READ PERFORM UNTIL EndOfStudentFile DISPLAY StudentId SPACE StudentName SPACE CourseCode SPACE YOBirth READ StudentFile AT END SET EndOfStudentFile TO TRUE END-READ END-PERFORM CLOSE StudentFile STOP RUN what will be output
in a cobol select statement for a ksds can you tell me what are the 3 possibilities for access?
What is the difference between shroptions(2 3) and shroptions (4 3) in the Def CLUSTER ??
What is File Status in VSAM?
Using alternate indexes in batch program?
What are the different types of VSAM files available?
In the COBOL SELECT statement what is the ORGANIZATION for a KSDS?
what do you mean by recovery and speed parameters in define cluster command?
What is an alternate index and path ?