Re: 01 NAME1 PIC X(13) VALUE "COBOL PROGRAMMING". 01 NAME2
PIC X(13). now I want to display the value of NAME1 in
reverse order i.e value should be displayed as "GNIMMARGORP
LOBOC" HOW can I do that ??? please let me know if any one
knows it.
Answers were Sorted based on User's Feedback
Answer / sruthi
Hi Subu,
first of all the size of the var NAME1 is 13. You are
passing more than 13 chars. Some data will be truncted.
There are 2 methods to reverse the string.
one is move reference modification.it is very lengthy
process and other is reverse function.
syntax: move function reverse(NAME1) to NAME2
| Is This Answer Correct ? | 12 Yes | 0 No |
Answer / praveen ellur
Reverse function in Cobol will do this for u.
Here is the syntax.
FUNCTION REVERSE ('COBOL PROGRAMMING')
| Is This Answer Correct ? | 5 Yes | 0 No |
Wat is the difference between NEXT and CONTINUE statement in cobol,can any one explain with example.
In EBCDIC, how would the number 1234 be stored?
Name some of the examples of COBOl 11?
In a program, variables are used but no DB2 involved in it. Can you call it as host variables??
What are the rules of the move verb?
How does IDMS insure data integrity?
Why occurs cannot be used in 01 level in COBOL?
Can printer files (having 133 characters) be of variable length?
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.
1)what is use of linkage section? 2)what is difference between comp and comp-3
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
Please let me know at which Scenarios we will go for STATIC call or DYNAMIC