Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. aybooth

    How can I import an unknown number of .txt files into SAS?

    I am trying to import an unknown number of text files into SAS. I have found some codes but none seem to work... filename indata pipe 'dir d:\requests\miller\testfiles /b'; data file_list; length fname $20; infile indata truncover; /* infile statement for file names */ input fname $20.; /*...
  2. aybooth

    Trailing Blanks

    Chris, Thank you very much for this!! You've been a great help. Ant
  3. aybooth

    Trailing Blanks

    Thanks that helps! Another one. I am creating my file like this... data _null_; set outmain3(drop=var_chk); file 'S:\CH\Risk\Cust_Assist\DDAHierarchy\outmain_test.data'recfm=f lrecl=314; put @1 var; run; However the 314 record length is working but each records follows the previous, can I get...
  4. aybooth

    Trailing Blanks

    Hi I am uploading a file against our mainframe and its expected length is 314 bytes. This is made up of other variables but after the acct number, phone number, status code it leaves me needing 56 for the comment field and 31 for an additional filler. the comment is 56 as that is the longest...
  5. aybooth

    Trailing Blanks

    How can I create a variable that will always 56 bytes long regardless of how many characters are in the original text string? I need to add trailing blanks so that the variable is always 56 bytes long. I can format and ensure the length is 56 but when I perform the length function on the...
  6. aybooth

    export to multiple excel tabs

    How can I export from one sas data set to multiple excel tabs on one spreadsheet. I want to segment the dataset using a variable I have created which denotes which department the records belong to. Thanks Anthony
  7. aybooth

    segmenting datasets into deciles

    am i able to segment a dataset of x records into deciles by using the _n_ function? (the dataset is already sorted by the required variable so no further sorting can be done) so that SAS calculates what the last record number is and then divides by 10 and uses that number to create a variable...
  8. aybooth

    counting characters

    I need to know how to count the number of specified charecters within a string of text. i.e. how many B's appear within "BBB12BBB" = 6. Thanks
  9. aybooth

    transferring to other applications

    Is it possible to transfer data from excel to other applications using a macro? how can you get the macro to open the other applications and then paste the data in a specific area, i.e. an account number. thanks

Part and Inventory Search

Back
Top