Dynamic allocation of output files in a SAS program


    Sponsored Links


  • 1. Reminder, SAS-L BOF at SUGI
    FROM: SAS-L BOF Planning Committee (see list at bottom) For those of you who will be attending SUGI next week, be sure to get to the always-entertaining SAS-L Birds of a Feather (BOF) session on Monday evening! What: SUGI 31 SAS-L BOF When: Monday, March 27, 2006 Where: Moscone Center, room 2005 Time: 6:30 - 7:30 pm Highlights will include, but not necessarily be limited to, the presentation of the annual SAS-L awards (based on your nominations and votes), and a summary by Howard Schreier of SAS-L posting statistics. We will also have a couple of folks from SAS who will be talking about the new "user discussion forums". And, maybe a surprise or two. You never know! Naturally, one of the best reasons to come is meet (or renew acquaintances with) some of the folks that you encounter on the -L. Hope to see many of you there! The SUGI 31 SAS-L BOF Planning Committee, Ron Fehd ( XXXX@XXXXX.COM ) Jack Hamilton ( XXXX@XXXXX.COM ) Larry Hoyle ( XXXX@XXXXX.COM ) Joe Kelley ( XXXX@XXXXX.COM ) Sally Muller ( XXXX@XXXXX.COM ) Mike Rhoads ( XXXX@XXXXX.COM ) Dianne Rhodes ( XXXX@XXXXX.COM ) Bill Viergever ( XXXX@XXXXX.COM )
  • 2. SAS Programming role UK
    Good Evening All, I am on the hunt at the moment to find some SAS programming contractors for a position i have vacent in the UK. They will be required to do Analytical SAS programming with multivariate analysis. 1yrs pure analytic experience is a must, (hands on not management). They will need to have more of a data manipulation background rather then application development. Experience of SAS 9 would be an advantage but not essential as long as they are confident with SAS 8.2 they should have experience of working with large Data sets. SAS macro Actuary experience is also a bonus especially if part qualified. Experience in the insurance sector is preferred but candidates with Pharmaceutical experience will also accepted This role may be suited to a more junior SAS contractor so if you guys know of anoyone or infact know of good places/other forums to look on then please reply as always thankyou all very much and have a good evening! Malcolm Skinner XXXX@XXXXX.COM 0118 951 9100
  • 3. Left Justify a value in text export.
    I have the following code. My question is easy. Given the variable "IndexFee" as listed below...how can I left justify this number? I've tried switching it to a character and that doesn't work either. If the value in the variable is 1 I need it to export 1 _ _ not _ _ 1 like it's doing. Data _null_; Set Billing.FinalStep; File "Z:\Information Analysis & Distribution\Projects\Shadow Billing\Electronic Data\David's SAS Program\SAS Results\Output.txt" LRECL=512; Put @01 IPOP $1. @02 Cr_Number $7. @09 PatientLastName $25. @34 PatientFirstName $15. @49 BDate yymmddn8. @57 Sex $2. @59 Street_Address $50. @109 City $20. @129 State $3. @132 Country $15. @147 Mailing_Code $9. @156 HCN $10. @166 Version $2. @168 HCNExpireDate @172 Service_Date $8. @180 ServiceTime Z4. @184 InstitutionFrom $4. @188 Doc_Billing_Num $5. @194 Institution 4. @198 PCSVisitNum $12. @210 OutofProvHealth $12. @222 OHIP_Fee$5. @227 Units 5. @232 IndexFee $3. @235 OHIP_Dx 3. @239 Ref_Prov_Num $6. @245 Ref_Lab_Num $4. @249 Location $4. @253 PaymentProg $1. @254 FeeSubmitted 6.2 @262 ManualReviewIndicator $1. @263 Admit_Date $8. @271 Admit_Time Z4.; Run;
  • 4. Create trasport file from sas6.0 to sas 8.2
    Hello I am having an issue creating sas trasnport files. I have datasets that were previously created in sas v6. I currently have sas v8.2. The error is because the datasets names are to long. I could rename the dataset then create the trasport file and this would work is there any way around this. thanks in advance

Dynamic allocation of output files in a SAS program

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

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


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,

2.Dynamic Link SAS output to Powerpoint

 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 ?


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';

* 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

Here is how I tried it:

//            DISP=(NEW,CATLG,DELETE),
//            SPACE=(CYL,(50,10),RLSE),UNIT=SYSDA,
//            DCB=(RECFM=U,BLKSIZE=0)

And the statement is SAS is:



5.Automated import of dynamic labeled files into SAS


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.


A normal SAS-program with proc import looks like:
proc import datafile="D:\Service\Research\attach_first.txt"

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 71 guest