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
What is the Purpose of Pointer in the string?
Which is not true about evaluate statement
Have you used comp and comp-3 in your project? And how?
Which Search verb is equivalent to PERFORM…VARYING?
how do you define single dimensional array and multidimensional array in your cobol?
How do you differentiate between cobol and cobol-ii?
What is the difference between Global and External Variables?
Which division and paragraphs are mandatory for a COBOL program?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
Difference between cobol and cobol-ii?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
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 you get the ksds file records into your cobol program?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?