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: 10256
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: 662
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 Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Copying Panvalet members to PDS LOGESHWARAN K CA Products 4 Mon Mar 06, 2017 10:45 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am


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