if a file has 1000 recods how copy the records from 1 to 100
records using sort
Answer Posted / rv rocks
using iceman utility we can copy the 1st 100 records .
//sysin dd *
option copy, stopaft=100
/*
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What guidelines should be followed to write a structured cobol prgm?
Are you comfortable in cobol or jcl?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
What are the rules of the move verb?
How you can read the file from bottom?
What do you understand by psb and acb?
How many sections are there in data division in COBOL?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
Discuss about changing dataset name in proc.
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
Can we redefine the field of x(200) to less than 200?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
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 ......
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.