View previous topic :: View next topic
|
Author |
Message |
Nidhi Kapoor
New User
Joined: 08 Jun 2010 Posts: 3 Location: Pune
|
|
|
|
Hi! How to reverse the records while copying from i/p fileto o/p? |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hello Nidhi,
Welcome to the forum :-)
It can be done by various meathod. Would you kindly provide the tool or utility you want to use and Record length and format for input. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
Nidhi Kapoor
New User
Joined: 08 Jun 2010 Posts: 3 Location: Pune
|
|
|
|
Hello Ekta, Thanks for welcome and quick reply.
Please could you have a look to below problem?
I have a dataset ‘userid.BOND007’ which contains the text:
Columns 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0
T h e N a m e I s B o n d
Copy the data into a new sequential dataset called ‘userid.BOND007.REPHRASE” but, the text should read as
“BOND IS THE NAME”
in the new dataset
Your help is appreciated.
Nidhi |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Is this a HOMEWORK question.
Please also give more details of your requirement.
- Using which program / utility
- RECFM LRECL DSORG of input file
- Position length and format of key fields
- Why you need to do this |
|
Back to top |
|
|
Nidhi Kapoor
New User
Joined: 08 Jun 2010 Posts: 3 Location: Pune
|
|
|
|
Using IEBGENER utility |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
expat wrote: |
Is this a HOMEWORK question.
Please also give more details of your requirement.
- Using which program / utility
- RECFM LRECL DSORG of input file
- Position length and format of key fields
- Why you need to do this |
|
|
Back to top |
|
|
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
How is your result the reverse of the input?
First off I can not tell if you actually have spaces bewteen the 'words'
If there is not spaces, then the reverse of:
THENAMEISBOND is DNOBSIEMANEHT
If there is spaces and you just want to reverse the words:
THE NAME IS BOND becomes BOND IS NAME THE
The result is never what you were looking for. |
|
Back to top |
|
|
|