Dynamic allocation of output files in a SAS program

sas

    Sponsored Links

    Next

  • 1. HAPPY HOLIDAY TO ALL
    Happy Holidays to one and all=0A=0A Dave Fickbohm
  • 2. Code to export SAS catalog entries (grseg and html) to PC file
    Hi, I have to repeatedly export the contents of catalogs. With one or two catalogs this is easy to do using the menus, but with dozens upon dozens of catalogs I need to automate this task. Fortunately the contents of each catalog are always named the same: WORK.CAT1.FIT (grseg) and WORK.CAT1.EST (html) What code will save these entries as FIT.JPG and EST.HTML on my hard drive? Note: I only have the catalogs - not the code that created them or their entries, so I cannot export the graph and html output directly. I also do not have SAS/AF, if it matters. Thanks to anyone who's got ideas how to do this! -A
  • 3. Bruce Prater is out of the office on vacation-unreachable
    I will be out of the office starting 12/15/2006 and will not return until 01/03/2007. ************************************************************************************** This e-mail message and all attachments transmitted with it may contain legally privileged and/or confidential information intended solely for the use of the addressee(s). If the reader of this message is not the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, forwarding or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately and delete this message and all copies and backups thereof. Thank you. **************************************************************************************
  • 4. Using SAS to email through a macro
    I'm trying to use SAS to send emails to a list of people. Each person would receive a unique number. I've written the following macro, which works but has two problems. The first is that it sends two emails to each person on the list. In the sample code, I've listed two of my email addresses. The LRC address should receive one email with 4 as the unique number. The windstream address should also receive one email but with the unique number of 5. Instead, both receive two emails. For example, the LRC address receives one with the number being 4 and a second with the number being 5. Any thoughts on why this occurs? The second problem is that Outlook provides a warning for each email sent. The warning is to alert the user that another program is attempting to send an email. Is there any way to turn this off? Just in case there is a concern, this will not being used to send spam. %macro lawloans(address,numb); filename outbox email &address; data _null_; file outbox subject="Law Loans"; put 'Test'; put 'The number is ' &numb; %mend; %lawloans("Clark, Mike (LRC)","4"); %lawloans(" XXXX@XXXXX.COM ","5"); run;

Dynamic allocation of output files in a SAS program

Postby k_hemendra » Thu, 10 Jul 2003 19:58:06 GMT

Hi,
Is it possible to dynamically allocate output files in a SAS program.
I guess it is possible in Assembler.

Re: Dynamic allocation of output files in a SAS program

Postby Biff » Fri, 11 Jul 2003 01:04:20 GMT




YES

Similar Threads:

1.Dynamic sequential file allocation on MVS

Dear Folks,

I was used SAS on Win/Unix platform and new to mainframe, I have task
to complete which needs some expert advise , that why I am here.

I have to export SAS datasets to a delimited file which has to be
stored in portioned dataset as member, I wrote macro to do covert the
dataset as delimited file but I don know how to put it into PDS
member i.e

My pds name : bgxp.ftdf.data
My dataset name: mytrans
My csv converter macro : mconcsv
My Delimited file name should be : transrep

Here my expectations are :

1.	How to include a delimited file to member of PDS via JCL or SAS
2.	How do we set the space for the file i.e. I don know exactly how
much space I need for the delimited file?

If some one in the group post sample snippet with JCL / SAS that will
be really helpful.

Thanks & Regards,
Vijay

2.Dynamic Link SAS output to Powerpoint

Gents,
 In our New applications Dept. we have installed a Plasma Screen to
display online the status of customer's applcations.
I'm able to calculate online and through SAS all related numbers which
we have to display on the Plasma screen by using Powerpoint.
My quateion is:
 How I can have a dynamic link between SAS and Powerpint ?

Regards...Jarmak

3.Unix File Allocation Freeing ?

I have a program that is writing to a file that I want to execute,
within the program, after being created.  It didn't work when I tried
it and I'm guessing it's because the file was tied up by the program.
Is there a Unix command I can use to free the file within the program?

Here's the general flow of the program:

data _null_;
     file '/mypath/test.sh';
     put 'line 1';
     run;

* this is where the allocation free would be ;

x test.sh;

Other ideas welcome.  Thanks for any help.

4.MVS allocation of ODS PDF file

How should one allocation a PDF file for ODS PDF.  The default size is too
small.

Here is how I tried it:

//TOPSPDF  DD DSN=PSB2230.TOPS.PDF,
//            DISP=(NEW,CATLG,DELETE),
//            SPACE=(CYL,(50,10),RLSE),UNIT=SYSDA,
//            DCB=(RECFM=U,BLKSIZE=0)

And the statement is SAS is:

ODS PDF FILE=TOPSPDF;

Thanks!

5.Automated import of dynamic labeled files into SAS

Hi,

I want to write a SAS-Base program which is able to import dynamic
labeled files into SAS. The filenames have no specific pattern. Only
one part of the filename is static. For example:
File 1: attach_first.txt
File 2: attach_hour.txt
...
File 1000: attach_town.txt

The structure of the file content is in every file the same.

Exist in SAS wildcards to read in these Files?

I would be happy to get a solution!

A lot of Greetings from Germany.

Tom

A normal SAS-program with proc import looks like:
proc import datafile="D:\Service\Research\attach_first.txt"
            out=work.attach_first
	    dbms=dlm
            replace;
            delimiter='|';
	    getnames=yes;
run;

6. Dynamic file creation thru SAS

7. best practices: list processing, dynamic programming

8. dynamic macro-programming with call symput



Return to sas

 

Who is online

Users browsing this forum: No registered users and 63 guest