COBOL program to read the string ' BOMBAY' in reverse order as 'YABMOB'
Answer Posted / nanda
********************** Top of Data ***********
ID DIVISION.
PROGRAM-ID. ALLINONE.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 WS-A PIC X(7) VALUE 'NANDA'.
01 WS-B PIC X(7).
PROCEDURE DIVISION.
MOVE FUNCTION REVERSE(WS-A) TO WS-B.
DISPLAY WS-B.
STOP RUN.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
example for sub strings ? and refernce modifications whit output pls
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
How do get the result of your program directly on your pc?
What is Pic 9v99 Indicates in COBOL?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
What guidelines should be followed to write a structured cobol prgm?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
What is rmode(24)
What is amode(31)
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...)
Write a program that uses move corresponding.
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
how do you define single dimensional array and multidimensional array in your cobol?
i want a program using by if, evaluate , string, unstring, perform, occurs?
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?