COBOL program to read the string ' BOMBAY' in reverse order as 'YABMOB'
Answer Posted / randy
Hi,
We can use Reverse function.
MOVE FUNCTION REVERSE(WS-STRING) TO WS-REV-STRING
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
how can i see junk values in dclgen or in hostvariable of comp ?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
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
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
how do you define single dimensional array and multidimensional array in your cobol?
Give some examples of command terminators?
What type of SDLC u followed? Why?
What is the difference between comp and comp-3?
) what is the difference between AID and HANDLE AID?
Name the divisions, which are available in a cobol program?
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 i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
Which mode is used to operate the sequential file?
For rewrite, why is it mandatory that file needs to be opened?