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 / adithya
//job card
//step1 exec pgm=sort
//sortin dd dsn=adi.in
//sortout dd sysout=*
//sysout dd sysout=*
//sysin dd *
sort fields=(1,15,ch,a)
sum fields=none
/*
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
How do get the result of your program directly on your pc?
how do you reference the ksds vsam file formats from cobol programs
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
how to move the records from file to array table. give with code example
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What is inspect in cobol ?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
State the various causes of s0c1, s0c5 and s0c7.
how to access the file from prodution from changeman tool and to submit a file to production
What is the difference between external and global variables in COBOL?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?