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
 

 

Write record when it is not present in 2nd file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
vikash58

New User


Joined: 03 Apr 2007
Posts: 7
Location: pune

PostPosted: Thu Jan 29, 2009 12:54 pm    Post subject: Write record when it is not present in 2nd file
Reply with quote

Hi,
I have two file of same record structure.

FileA
AAAA 1234 XXXXXX
AAAB 1235 XXXXXX
AAAC 1236 XXXXXX
AAAD 1237 XXXXXX

FileB
AAAA 1234 XXXXXX
AAAB 1235 XXXXXX
AAAD 1237 XXXXXX
AAAE 1238 XXXXXX

I want a FileC which contains record from FileA which are not in present in FileB.

Like My FileC should be
AAAC 1236 XXXXXX

How can I do it from JCL sort step?

Thanks
Vikash
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: Thu Jan 29, 2009 1:11 pm    Post subject:
Reply with quote

This has been discussed so many times on this forum that I suggest that you use the search button at the top of the page.

Also, the solution may vary depending on which sort product is installed at your site. Please also specify the product in your question.

Usual questions, RECFM=, LRECL=, Start and end positions of comparison keys.
Back to top
View user's profile Send private message
vikash58

New User


Joined: 03 Apr 2007
Posts: 7
Location: pune

PostPosted: Thu Jan 29, 2009 1:28 pm    Post subject:
Reply with quote

but is there any other method except the using CTL

because i want it because I want the control cards in other member of a PDS.


and RECFM=FB , LRECL= 100 is description for all files
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Thu Jan 29, 2009 1:31 pm    Post subject:
Reply with quote

Hi,

there is nothing stopping you putting the control cards in a member of a PDS.


Gerry
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2180
Location: @my desk

PostPosted: Thu Jan 29, 2009 1:32 pm    Post subject:
Reply with quote

Quote:
but is there any other method except the using CTL
What did you mean by this? icon_rolleyes.gif

Also please try to answer the questions asked here if you want to get help from the forum.
expat wrote:
Also, the solution may vary depending on which sort product is installed at your site. Please also specify the product in your question.

Usual questions, RECFM=, LRECL=, Start and end positions of comparison keys.
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
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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