MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Extracting records from 2 files

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
davinski.bby
Beginner


Joined: 30 Jul 2007
Posts: 31
Topics: 10

PostPosted: Mon Aug 13, 2007 8:19 pm    Post subject: Extracting records from 2 files Reply with quote

Hi,

I have 2 datasets. d1 and d2. i need to get all records in d2 that has the same value in a certain column in d1.

The two files are of different record length.
File1 = 300
File2 = 200

NAME PICX(5)
GRADE PICX(2)

here is an example:

dataset1
Code:

GRADE       SECTION
A1          DIAMOND
A2          RUBY
C3          JADE


dataset2
Code:

NAME      GRADE
JOE       A1
JOHN      A1
JACK      A1
JEN       B7
JES       C3
MAR       C3
TIN       A2
CRIS      D8



OUTPUT WOULD BE

Code:

NAME      GRADE
JOE       A1
JOHN      A1
JACK      A1
JES       C3
MAR       C3
TIN       A2


Thanks.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12377
Topics: 75
Location: San Jose

PostPosted: Tue Aug 14, 2007 7:02 am    Post subject: Reply with quote

davinski.bby,

Please SEARCH before posting. Check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=5399

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group