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
 

 

Append data from another file

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

New User


Joined: 08 Sep 2011
Posts: 5
Location: india

PostPosted: Mon Apr 13, 2015 3:49 pm    Post subject: Append data from another file
Reply with quote

Hi,

I want to append record from another file using sort in JCL.

My input files contain record as below.
Input file 1:
AAAA
BBBB
CCCC

Input file 2: (contains only 1 record which I want to append at the end of input file1 records )
2015-13-04

output file :
AAAA2015-13-04
BBBB2015-13-04
CCCC2015-13-04

Could anyone please help me on this.

Thanks,
Lateef
Back to top
View user's profile Send private message

Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Mon Apr 13, 2015 4:10 pm    Post subject:
Reply with quote

You could acheive this by using SYMNAMES

Lot of examples here
Back to top
View user's profile Send private message
Abdul Lateef

New User


Joined: 08 Sep 2011
Posts: 5
Location: india

PostPosted: Mon Apr 13, 2015 6:28 pm    Post subject:
Reply with quote

Yes I got it through SYMNAMES.
Thank you so much.

Lateef
Back to top
View user's profile Send private message
RahulG31

Active User


Joined: 20 Dec 2014
Posts: 331
Location: USA

PostPosted: Mon Apr 13, 2015 6:29 pm    Post subject: Reply to: Append data from another file
Reply with quote

icon_rolleyes.gif

I thought JOINKEYS would work. Although he doesn't have any but he could use space as a key as there is only a single record in file2. That would work.

.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7241

PostPosted: Mon Apr 13, 2015 6:35 pm    Post subject: Reply to: Append data from another file
Reply with quote

The symbols/SYMNAMES use for this is a two-step approach. Step 1, from the single-record file, create the symbol. Step two, put the generated file on SYMNAMES DD, and use the symbol.

Another approach is to generate the control cards.

With JOINKEYS, it will work, but higher resource use.
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
This topic is locked: you cannot edit posts or make replies. Unwrap the data based on delimiter X'25' bhavana yalavarthi DFSORT/ICETOOL 30 Fri Dec 09, 2016 10:25 am
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am
This topic is locked: you cannot edit posts or make replies. How to move a long alphanumeric data ... lind sh COBOL Programming 8 Mon Dec 05, 2016 7:51 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm


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