if a file has 1000 recods how copy the records from 1 to 100
records using sort
Answer Posted / bhaskar reddy
//sysin dd*
sort fields=copy
stopaft=100
/*
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is a report item?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What are declaratives and what are their uses in cobol?
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.
What is the difference between Call and a Link?
Mention the guidelines to write a structured cobol program?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
What are different data types in cobol?
How do get the result of your program directly on your pc?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
What is a SSRANGE and NOSSRANGE?
What rules are to be followed while using the corresponding options?
What is the difference between comp and comp-3?
) How do u handle errors in BMS macro