Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 10373
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: 8614
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: 8614
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: 688
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 Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 1 Wed Dec 06, 2017 1:50 am
No new posts Increment number for every group of r... srajendran2 DFSORT/ICETOOL 7 Thu Nov 09, 2017 10:31 pm
No new posts Matching and unmatched records!! Vignesh Sid SYNCSORT 3 Thu Nov 09, 2017 11:22 am
No new posts Formatting multiple records to a sing... Vignesh Sid SYNCSORT 3 Tue Nov 07, 2017 12:22 pm
No new posts Format Last Record differently from r... Learncoholic DFSORT/ICETOOL 5 Tue Oct 24, 2017 12:01 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us