Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> HomeWorks & Requests
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    Post subject: How to reverse the records while copying from i/p fileto o/p
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: 1187
Location: Bangalore,India

PostPosted: Tue Jun 08, 2010 11:44 am    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Tue Jun 08, 2010 11:48 am    Post subject: Reply to: How to reverse the records while copying from i/p
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
http://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    Post subject: Reply to: How to reverse the records while copying from i/p
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: 8593
Location: Back in jolly old England

PostPosted: Tue Jun 08, 2010 12:19 pm    Post subject:
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    Post subject: Reply to: How to reverse the records while copying from i/p
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Jun 08, 2010 12:30 pm    Post subject:
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: 646
Location: Pennsylvania

PostPosted: Tue Jun 08, 2010 9:54 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> HomeWorks & Requests All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us