I have program P1 which calls file F1 which has 100 records
and following structure
001 ..................
002 ..................
003 ..................
098 ....................
099 ...................
100 ....................

Now I want to read these files and write these records in
file F2 in following manner.

001 ...... 051 .....
002 ...... 052 .....
003 ...... 053 .....
.......... .......
.......... .......
.......... .......
048 ........ 098 ......
049 .......... 099 .......
050 .... 100 ......

Answer Posted / vaneesh

Hi Krishnan A

How will how will you split the file into 50-50. Please let
me know with the sort card.

Vaneesh

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different data types in cobol?

790


What is rmode(any) ?

776


how do you reference the esds vsam file formats from cobol programs

734


What is the difference between PIC 9.99 and 9v99 in COBOL?

850


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

2069






What are the different rules of SORT operation?

784


What are the different open modes available in cobol?

822


What is the Purpose of POINTER Phrase in STRING command in COBOL?

845


What are the different types of condition in cobol and write their forms.

751


What is inspect in cobol ?

881


How do you reference the following file formats from cobol programs?

797


How to remove 2 duplicate records and copy only one using job control language?

875


Which mode is used to operate the sequential file?

800


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

834


For rewrite, why is it mandatory that file needs to be opened?

712