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 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: 4650
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: 4650
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am

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