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: 4648
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: 4648
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 Data replication from multiple Db2 ta... kishpra DB2 5 Mon Mar 27, 2017 9:58 pm
No new posts Splitting of single report to seperat... abdulrafi TSO/ISPF 4 Mon Mar 27, 2017 3:59 pm
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Record Not found in AlX but record re... mukun264 COBOL Programming 7 Fri Mar 24, 2017 9:28 am


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