input:-AABBCCDDEFGHIIJ
output:- ABCDEFGHIJ
Here in input we hav the duplicate characters i.e repeating
characters.SO we should eliminate the duplicate characters
and should display the output in ascending order.
Answer Posted / subbu
We can eliminate the duplicates using sort.
please find the control card for sort.
sort fields = (starting position of field,length of the
field,data type,ascending or descending order)
sum fields=none
| Is This Answer Correct ? | 1 Yes | 7 No |
Post New Answer View All Answers
What is the local-storage section?
What is the difference between Call and a Link?
What is rmode(24)
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
Give some examples of command terminators?
Can you please let me know the centre name of INS certification in Kolkata.
what is the use of outrecord?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
how to access the file from prodution from changeman tool and to submit a file to production
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
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 LINKAGE SECTION used in COBOL?