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

JCL Logic needed


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
karthik3883

New User


Joined: 19 Oct 2007
Posts: 37
Location: chennai

PostPosted: Fri Sep 27, 2013 1:43 pm
Reply with quote

Hi,

I need a help in one of the logic .

I want to copy the members of dataset A.B,C to one dataset D and whenever any member in datasets A,B,C got updated ,I have to run this newly job to refresh the dataset D.

Also i have certain member in dataset E which will be ther in a,B,C as well and while copying to D this should be excluded

REgards
Karthik
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Sep 27, 2013 2:12 pm
Reply with quote

I have done something similar in the past, all of it based on the output of ISRSUPC compare.

From the output you can find - from the summary data at the end of the report.
a) which members have changed, or now exist in the new PDS but not the old.
b) which members no longer exist in the new PDS but remain in the old PDS.

Using DFSORT you can generate IEBCOPY SELECT statements, or IDCAMS DELETE statements as required.
If I recall correctly you only need include the lines which start **.

Then check each output dataset generated by DFSORT for valid data and conditionally execute the IEBCOPY or IDCAMS steps.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Mainframe Programmer with CICS Skill... Mainframe Jobs 0
No new posts Finding faulty logic Subscript out of... COBOL Programming 5
No new posts Help needed to assemble IMS sample co... ABENDS & Debugging 4
No new posts RABBIT HOLE NEEDED - "Live"... All Other Mainframe Topics 0
This topic is locked: you cannot edit posts or make replies. Need assistance in job scheduling logic. Mainframe Interview Questions 2
Search our Forums:

Back to Top