Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 683
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: 1542
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: 683
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Repeat part of record multiple times Learncoholic DFSORT/ICETOOL 4 Tue Aug 29, 2017 11:33 am
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us