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 is the difference between comp and comp-3?

704


What are 77 levels used for?

659


Explain the configuration section of a cobol program with examples of syntax.

660


I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.

2010


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

753






How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

645


What is amode(24)?

684


how do you reference the fixed unblock file formats from cobol programs

712


i want a program using by if, evaluate , string, unstring, perform, occurs?

4061


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

711


What are the different rules of SORT operation?

700


What is inspect in cobol ?

804


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

648


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

721


What is perform what is varying?

711