LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (September 2002, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 4 Sep 2002 21:48:58 -0700
Reply-To:   kiruba <kiruba_jc@HOTMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   kiruba <kiruba_jc@HOTMAIL.COM>
Organization:   http://groups.google.com/
Subject:   Re: Macro to read a Vsam using key - Help needed
Content-Type:   text/plain; charset=ISO-8859-1

Hi , Thanks for the response . Sorry for not stating things clear.. I have a Flat file(sequential) with data, as of now we are creating a report with that data. The MCD, a field in the Flat file is a 2 digit CODE , For Every Code in the File there is a TITLE Associated with it i.e if the Code is PP then the TITLE is "PROGRESSIVE PARTNER " . At present we have hardcoded these titles as a FORMAT, But the problem with this is we have to change the SAS module every time a new title is added. Inorder to prevent this I am trying to get the title details from a KSDS VSAM. The KSDS VSAM has the MCD as key. All i have to do is get the details (title ) from the VSAM for every record in the Input Data. So that i can remove the Hard coded values from the SAS Module. Hope i am clear with my requirements. Since these hardcoding is done in several SAS modules i thought that it would be appropriate to write as a MACRO. As of the code i have written all i am trying to read is for every record from the input i take the Code and pass it to the macro to get the title. In the Macro I am trying to get the Details(title) from the VSAM. Now the problem with this is i do not know how to get the title from the MACRO back to the Called pgm. And also i need to add the title to the existing Input Data without affecting any other details as it would mess up my Report. I am very new to SAS so Kindly excuse me if any of my query is primitive.

Thanks, Kiruba


Back to: Top of message | Previous page | Main SAS-L page