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

Merge record from PS and PDS


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
guptae

Moderator


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

PostPosted: Tue Dec 18, 2012 10:25 pm
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: 792
Location: Pennsylvania

PostPosted: Tue Dec 18, 2012 11:47 pm
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

Global Moderator


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

PostPosted: Wed Dec 19, 2012 12:46 am
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
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: 792
Location: Pennsylvania

PostPosted: Wed Dec 19, 2012 1:31 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
Search our Forums:

Back to Top