Many To One Merge In SAS

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

Moderator: Moderator Group

Post Reply
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:

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 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.
Mainframe Interview questions

Other References
Mainframe Tools and others