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
 

 

JCL Logic needed

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: JCL Logic needed
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: 8593
Location: Back in jolly old England

PostPosted: Fri Sep 27, 2013 2:12 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am
No new posts Need help in building a logic Benchwarmer All Other Mainframe Topics 4 Wed Feb 22, 2017 2:49 am
No new posts Wildcard logic in COBOL dudenithy COBOL Programming 13 Thu Sep 01, 2016 7:36 pm
No new posts Help Needed with View Direct shailesh_do CA Products 2 Wed Jul 13, 2016 10:39 am
No new posts Sort Logic to extract data scorp_rahul23 DFSORT/ICETOOL 13 Tue Mar 01, 2016 1:22 am


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