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
 

 

Merge record from PS and PDS

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

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Tue Dec 18, 2012 10:25 pm    Post subject: Merge record from PS and PDS
Reply with quote

Hi All,

I have two files like below

First file:
VB
Sample records
Code:
AAABBBT6QJDBG.CXTDNAS.CXT03AX1.INDOC(D2TKX2FX)
AABBBBT6QJDBG.CXTDNAS.CXT03AX1.INDOC(D2TKXAFX)


Second file
PO
VB
File name :T6QJDBG.CXTDNAS.CXT03AX1.INDOC
Contain member like
D2TKX2FX
D2TKXAFX

D2TKX2FX contain data as
Code:
abcd
23
   
 


Required result
Code:
AAABBBabcd23                                               


Basically we want to merge the records.
and get them in a single line rather then having reference to dataset name.
Please advise
Back to top
View user's profile Send private message

daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 660
Location: Pennsylvania

PostPosted: Tue Dec 18, 2012 11:47 pm    Post subject:
Reply with quote

Looks like the job for a Rexx exec.

I do not think it will work by using Sort.
Back to top
View user's profile Send private message
Pandora-Box

Moderator


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

PostPosted: Wed Dec 19, 2012 12:46 am    Post subject: Re: Merge record from PS and PDS
Reply with quote

guptae wrote:

Required result
Code:
AAABBBabcd23                                               


You need the output to have first 6 bytes from file 1 and the RESIZED data from each PDS member?

will the PDS members going to be decided at runtime?
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Wed Dec 19, 2012 1:22 am    Post subject:
Reply with quote

daveporcelan wrote:
Looks like the job for a Rexx exec.

I do not think it will work by using Sort.


Technically you can read the VB file consisting of input file names and build A JCL concatenating all the file names with RESIZE option and submit the job via INTRDR and get the desired results.
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 660
Location: Pennsylvania

PostPosted: Wed Dec 19, 2012 1:31 am    Post subject:
Reply with quote

I guess I always default to Rexx because I am much stronger with it.

I work with sort often, but do not have the creativity needed to accomplish such a task.

It does appear to be simpler to do with Rexx (in my warped mind).
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 Record Not found in AlX but record re... mukun264 COBOL Programming 5 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts To Merge mutliple records into a sing... anandgbe DFSORT/ICETOOL 6 Wed Feb 22, 2017 8:49 am
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm


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