How to rename A1-A30 datasets into B1-B30 using macros?



How to rename A1-A30 datasets into B1-B30 using macros?..

Answer / rajasekhar m

%macro rename;
%do i=1 %to 30;
proc datatsets;
change a&i. = b&i.;
quit;
%end;
%mend;

%rename;

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Programming Languages AllOther Interview Questions

SYNFOSYS PLACEMENT PAPER 2010 Hi Friends I have attended the recent synfosys test 2010. Here r some questions which i remember. Section – I 1) There are 12 balls weigh similar but one is dissimilar (more/less). How to find the dissimilar ball with minimum no of weighs? 2) There r 7people carrying 7bags. Each bag contains 7cats. Each cat has 7small cats. How many total legs r there? 3) There are 12 balls weigh similar but one is dissimilar (more/less). How to find the dissimilar ball with minimum no of weighs? 4) 5) There r 2 poles each 15 meters high. A cable of length 16 meters is tied between pillars top. For its maximum the cable lies down above 7mts high from the ground. What is the distance between pillars? ------------------------------------------------------------ ------------------------------------------------ Section -II What is the value of 11^5 Some Other quetions ------------------------------------------------------------ ------------------------------------------------ Section - III 16) Serialization and deserialization? 17) Will finally block execute even though there is an exception & return statement are there in catch block? Explain? 18) memory leak? How can we avoid it? 19) virtual destructor? 20) Two program codes for code optimization? ------------------------------------------------------------ ------------------------------------------------ Section – IV Q) Program for finding the alternate digits of the number If number is 35846 then Sum1=3+8+6=17 Sum2=5+4=9 Q) Program for Single linked list? ------------------------------------------------------------ ------------------------------------------------ Section - V Q) What is software engineering? Explain SDLC Q) Explain any two upcoming IT Scenarios? ------------------------------------------------------------ ------------------------------------------------ Regards Gopinath Allanku +91 9885457211

2 Answers   synfosys,


what diffrence between procedure and function?

3 Answers  


How to know we are in home page of a web application using QTP

0 Answers   HCL,


About CLR, reflection and assemblies?

2 Answers   pspl,


cgi stands for

2 Answers   CGI,






How to swap two String values without using a third variable?

8 Answers   Infosys,


what is difference between scripts, smartforms and adobe forms

5 Answers  


How same session variable can be used in both Asp and Asp.net?

1 Answers   Wipro,


Given an array of size n, containing every element from 1 to n+1, except one. Find the missing element.

0 Answers   Amazon,


what is the difference between a looping statement and a decision statement

3 Answers  


In staad pro, how can we design ROOF SLAB?

0 Answers   L&T,


Define Abstract method & class with Example

3 Answers  


Categories