Hi All,
I am stuck with a reqiuirment where I have to create one sas code from another sas code dynamically during run time in linux
I need help urgently.
Many Thanks
So what do you need help with?
That's an incredibly broad topic but you can definitely:
create one sas code from another sas code dynamically during run time in linux
thanks Reeza,
actually, when we read one file in sas code A and based on few conditions code A will create code B. so How the code from A will go to code B. As in the case of sas-mainframe where we dynamically create job from another job;there in the first job we give the code og 2nd job under "PUT AAAAA; " statement and once job1 is submitted it will create job2 with the code AAAA;
You can dynamically create the code, place it in a text file in the work library and then use %include to call the program.
ok....but few fields in the 2nd job has to be changed based on the few conditions in the 1st job and the input file read..so how this change of certain fields in the 2nd job will be reflected dynamically
ok..will try to elaborate my prob. I have one code A, from whcih I have to generate a code B. In code A, there is one field called Vendor_code. This code is reading one input file which has say 3 vendor codes. so based on few conditions code A will generate code B at the same time it will populate the value of vendor_code in the generated code i.e. code B. e.g. if there are 3 vendor codes then 3 set of codes will be generated from the 2st code A with the different values of vendor_code in code B
Write a macro. Use call execute to call the macro that has the vendor codes.
@PratapDeo wrote:
ok..will try to elaborate my prob. I have one code A, from whcih I have to generate a code B. In code A, there is one field called Vendor_code. This code is reading one input file which has say 3 vendor codes. so based on few conditions code A will generate code B at the same time it will populate the value of vendor_code in the generated code i.e. code B. e.g. if there are 3 vendor codes then 3 set of codes will be generated from the 2st code A with the different values of vendor_code in code B
Hi,
Could you please help me to get the syntax/format to submit another job from first job.
Like in SAS program we use SUB 'file-name' ;
%INCLUDE
Your question is too broad. Yes you can do what you want is all we can tell you without further details. Mock up a test of what you need to do, which you should be doing anyways so you can test your process and post that information.
@PratapDeo wrote:
ok....but few fields in the 2nd job has to be changed based on the few conditions in the 1st job and the input file read..so how this change of certain fields in the 2nd job will be reflected dynamically
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.