Many To One Merge In SAS

Ask questions about any other mainframe topics which are not covered above

Moderator: Moderator Group

Post Reply
shymaherold
Member
Posts: 1
Joined: Wed Jun 17, 2015 5:53 pm

Many To One Merge In SAS

Post by shymaherold » Wed Jun 17, 2015 6:14 pm

Hello Everyone,

Can anyone help me on below merge query on SAS? I need to merge the below 2 data sets using SAS and the output should be displayed like below:

Input Data set-1 with Policy number

Policy Number:
100001
100002
100003

Input Data set-2 with Policy Number & Country Code

Policy Number Country Code
100001 SA
100001 HA
100001 YA
100002 AA
100002 BB
100003 DD


Output : Data set

Policy Number Country Code
100001 SA HA YA
100002 AA BB
100003 DD

Thank You!

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others