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: 646
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: 1529
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: 646
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 How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts sort with previous record anatol DFSORT/ICETOOL 9 Thu Oct 06, 2016 2:36 am
No new posts Get Record count in summary record fo... Atul Banke DFSORT/ICETOOL 21 Fri Sep 23, 2016 4:17 pm
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm


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