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
 

 

Need help on extending the record

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Pinchoo

New User


Joined: 22 Nov 2005
Posts: 8
Location: hyderabad

PostPosted: Wed Jan 21, 2015 6:19 pm    Post subject: Need help on extending the record
Reply with quote

I have four flat files with RECL 80, and i want to combine the records of all the four files into one. Threre's no key and no specific condition.. i just want the records of different files as columns of single file.

Input File 1:
Code:
A1
B1
C1


Input File 2:
Code:
A2
B2
C2
D2


Input File 3:
Code:
A3
B3
C3



Input File 4:
Code:
A4
B4
D4

Output file should be

Code:
A1 A2 A3 A4
B1 B2 B3 B4
C1 C2 C3 D4
   D2


Thanks! in advance for helping

Code'd
Back to top
View user's profile Send private message

vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1504
Location: Chennai

PostPosted: Wed Jan 21, 2015 7:29 pm    Post subject:
Reply with quote

Hello,

Is the output file like this

Code:
A1 A2 A3 A4
B1 B2 B3 B4
C1 C2 C3 D4
D2


or like this?
Code:
A1 A2 A3 A4
B1 B2 B3 B4
C1 C2 C3 D4
   D2


Please use code tags.
Back to top
View user's profile Send private message
Pinchoo

New User


Joined: 22 Nov 2005
Posts: 8
Location: hyderabad

PostPosted: Wed Jan 21, 2015 7:47 pm    Post subject:
Reply with quote

i am looking for ouput like the second option..
No reformatting required.. the records from the files as it is
Back to top
View user's profile Send private message
Pinchoo

New User


Joined: 22 Nov 2005
Posts: 8
Location: hyderabad

PostPosted: Wed Jan 21, 2015 7:48 pm    Post subject:
Reply with quote

Code:

**********************
A1 A2 A3 A4           
B1 B2 B3 B4           
C1 C2 C3 D4           
    D2               
**********************
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Wed Jan 21, 2015 7:54 pm    Post subject: Reply to: Need help on extending the record
Reply with quote

did You notice the formatting of the replies You received ???

learn to use the code tags

what is included in the code tags will be displayed with a fixed font and will preserve the spacing

5 blanks and XXXXX

without
12345
XXXXX

with
Code:
12345
     XXXXX


it will make easier for everybody to understand the record layouts
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Wed Jan 21, 2015 7:55 pm    Post subject:
Reply with quote

Pinchoo,
Click the Code button, key or paste your data, click the Code* button, click Preview to see how it looks, click Submit when satisfied:
Code:
**********************
A1 A2 A3 A4
B1 B2 B3 B4
C1 C2 C3 D4
D2
**********************
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Wed Jan 21, 2015 7:57 pm    Post subject:
Reply with quote

Click FAQ and read about BBCode.
Back to top
View user's profile Send private message
Pinchoo

New User


Joined: 22 Nov 2005
Posts: 8
Location: hyderabad

PostPosted: Wed Jan 21, 2015 8:22 pm    Post subject:
Reply with quote

Thanks! i'll take care of this for future posts..
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Sort Large record length cmsmoon DFSORT/ICETOOL 14 Tue Apr 11, 2017 5:49 pm
No new posts Format record to remove Leading zeroes Learncoholic DFSORT/ICETOOL 14 Wed Apr 05, 2017 2:43 pm


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