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 arrange 9 records into single record in flat file.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
Narismha

New User


Joined: 22 Nov 2006
Posts: 23
Location: Mumbai

PostPosted: Fri Dec 15, 2006 11:51 am    Post subject: How to arrange 9 records into single record in flat file.
Reply with quote

Hi,

I have the file with 9 records. I want those 9 records into one record. Can you please tell me the TSO command?

Example :

Records in flat file:

123456,
234565,
456466,
564356,
324556,
687686,
057645,
678067,
567775


Expected result through tso Command..

123456,234565,456466,564356,324556,687686,057645,678067,567775

Thanks
-Narisimha
Back to top
View user's profile Send private message

guptae

Moderator


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

PostPosted: Fri Dec 15, 2006 12:22 pm    Post subject:
Reply with quote

Hi Narismha,

Its not a very good solution but it will solve ur purpose
first give )7 on second line to shift it 7

Code:
0001 123456,
)7   234565,
0003 456466,


then it will look

Code:
123456,       
       234565,
456466,   


then give MOVE & OVERLAY

Code:
  O    123456,       
M             234565,
000003 456466,   


u will get
Code:
123456,234565,
456466,


Smilarly u can use for other rows..
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4649
Location: Raleigh, NC, USA

PostPosted: Fri Dec 15, 2006 12:39 pm    Post subject: Re: How to arrange 9 records into single record in flat file
Reply with quote

A single TEXT FLOW (TF) line command ought to work.
Back to top
View user's profile Send private message
guptae

Moderator


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

PostPosted: Fri Dec 15, 2006 12:50 pm    Post subject:
Reply with quote

Thanks alot SuperK.
I learnt a new thing today
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4649
Location: Raleigh, NC, USA

PostPosted: Fri Dec 15, 2006 1:01 pm    Post subject: Re: How to arrange 9 records into single record in flat file
Reply with quote

TEXT FLOW (TF) and TEXT SPLIT (TS) - couldn't imagine working without them, especially when creating documents or help text.
Back to top
View user's profile Send private message
Narismha

New User


Joined: 22 Nov 2006
Posts: 23
Location: Mumbai

PostPosted: Fri Dec 15, 2006 1:24 pm    Post subject:
Reply with quote

Thank you Superk.

Regards
-Narisimha
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 1 Wed Jul 26, 2017 7:35 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am


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