IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to arrange 9 records into single record in flat file.


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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: 1208
Location: Bangalore,India

PostPosted: Fri Dec 15, 2006 12:22 pm
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

Global Moderator


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

PostPosted: Fri Dec 15, 2006 12:39 pm
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: 1208
Location: Bangalore,India

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

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

Global Moderator


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

PostPosted: Fri Dec 15, 2006 1:01 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top