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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is web.configuration? how is it work? & wht is use this?

1361


In an customer exit (include Z) program, only the last record is getting fetched. The exit is getting called after pressing save button. What to write for fetching the first record ? Before saved to a SAP table how can i call all these records in an itab in the exit ?

1513


How to merge Action Form with Dyna Action Form in Struts.

1896


How to set on/off a group of indicators in a single statement?

1377


what is the diffrence between software and hardware language?

1820






1.Mutating table

1393


Which design patterns have you used?

1550


1. How many jobs can we write in a single file? 2. How many maximum members can exist in a single partition data set(pds) in jcl?

1917


difference between mantis and other tools?

1618


Write a program to find duplicate number from array in minimum time complexity.

642


in cobol,wat is the difference in using 'set index in occurs clause' ....and 'occurs depending-on clause'

1772


1) How can u create the table?

1375


Do not use more than 3 nested IF. Use Evaluate statement in case of more IF required. Please give a detail explantion besides readability and clarity for Evaluate stmt.

1483


how do i create my own exception class which will restrict IO exception?

2299


How can recruiter justified that the candidate is expert in Algorithm and datastructure for Software product development ?

1503