IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to reverse the records while copying from i/p fileto o/p


IBM Mainframe Forums -> HomeWorks & Requests
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Nidhi Kapoor

New User


Joined: 08 Jun 2010
Posts: 3
Location: Pune

PostPosted: Tue Jun 08, 2010 11:33 am
Reply with quote

Hi! How to reverse the records while copying from i/p fileto o/p?
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Tue Jun 08, 2010 11:44 am
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Jun 08, 2010 11:48 am
Reply with quote

searching the forums with sort reverse order
would have already given You quite a few ideas on how to proceed ,
for example
ibmmainframes.com/viewtopic.php?t=44866&highlight=sort+reverse+order
Back to top
View user's profile Send private message
Nidhi Kapoor

New User


Joined: 08 Jun 2010
Posts: 3
Location: Pune

PostPosted: Tue Jun 08, 2010 12:09 pm
Reply with quote

Hello Ekta, Thanks for welcome and quick reply. icon_smile.gif

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Jun 08, 2010 12:19 pm
Reply with quote

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
View user's profile Send private message
Nidhi Kapoor

New User


Joined: 08 Jun 2010
Posts: 3
Location: Pune

PostPosted: Tue Jun 08, 2010 12:22 pm
Reply with quote

Using IEBGENER utility
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Jun 08, 2010 12:30 pm
Reply with quote

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
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Tue Jun 08, 2010 9:54 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> HomeWorks & Requests

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Join multiple records using splice DFSORT/ICETOOL 5
Search our Forums:

Back to Top