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

Write record when it is not present in 2nd file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Thu Jan 29, 2009 1:11 pm
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
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: 1702
Location: Australia

PostPosted: Thu Jan 29, 2009 1:31 pm
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: 2481
Location: @my desk

PostPosted: Thu Jan 29, 2009 1:32 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top