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 

SAS Macros and VSAM match

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
sanjayr321
Beginner


Joined: 25 Sep 2006
Posts: 28
Topics: 15

PostPosted: Sun Jun 08, 2008 11:42 pm    Post subject: SAS Macros and VSAM match Reply with quote

Hi,

Please help me in the below requirement,

I need to calculate value BALANCE = SALARY - EXPENSE-2 using 4 ps input files and one vsam input file by using vsam key match and reading the input files in sas macros.

I have 4 input files (PS) with following fields,

EMP NO, AGE, NAME, SALARY, EXPENSE-1.

I have another VSAM input file which having fields,

EMP NO, EXPENSE-2.


now, I need to calculate BALANCE = SALARY - EXPENSE-2 using VSAM match for all the employee (EMP no is unique) in the 4 input files by reading the files in SAS macros and write into the output file - with EMP NO, AGE, NAME, BALANCE.


thanks,
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Mon Jun 09, 2008 1:42 am    Post subject: Reply with quote

What specific problem do you have? This looks fairly rudimentary:
read concatenated seql. file
create vsam key
read vsam file
create output
repeat until eof on seql. file
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Sat Jun 21, 2008 4:58 am    Post subject: Reply with quote

Why do you need to use a SAS macro ? please explain further.

Are you writing a PS or VS file as output ?

4 input files all containing the indicated fields, what about suplicate data, is this a possibility ?
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming 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