View previous topic :: View next topic
|
Author |
Message |
mohnish
New User
Joined: 22 Sep 2006 Posts: 4
|
|
|
|
hi..
how can we reverse a string present in file1 and write the reversed string in file2
like..
file1:
this is line 1
this is line 2
this is line 3
the requiremnet is to reverse each line and write the reversed line in file2 |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
Back to top |
|
|
bhim_s
New User
Joined: 19 Sep 2006 Posts: 46 Location: New Delhi
|
|
|
|
Here is the example for U:
Code: |
Message = "Happy birthday to you"
NewMsg = REVERSE(Message)
Say "The original message was " Message
Say "The new message is " NewMsg |
Will display:
The original message was Happy birthday to you
The new message is uoy ot yadhtrib yppaH
Bhim |
|
Back to top |
|
|
pcoreddy
New User
Joined: 14 Mar 2007 Posts: 24 Location: Mysore
|
|
|
|
MOVE FUNCTION REVERSE(MY-VAR) TO MY-VAR
by using this one reverse it and then write the 2nd file |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
pcoreddy -
It seems like you confused REXX with COBOL...
o. |
|
Back to top |
|
|
|