Runnest
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 145 articles for 0.303 sec
you are correct: item description: round, flat, hole in middle has been invented: Two Macros: ProgList and PutMvars to show calling sequence of %%included routines http://www2.sas.com/proceedings/sugi30/004-30.pdf http://tinyurl.com/4raq59 links to sas comm wiki where there is a link to the .zip containing these two macros. Ron Fehd the macro maven CDC Atlanta GA USA RJF2 at cdc dot     

Group: comp.softsys.sas · Group Profile · Search for Runnest in comp.softsys.sas
Author: "Fehd, Ronald J. (CDC/CCHIS/NCPHI
Date: Sep 19, 2008 07:30

On Sep 19, 1:28 am, "Rune Runnestø" <r...@fastlane.no> wrote: Hi! I figure that if I could write a macro and let the start of each file that are being processed during the execution of a program telling the user which file SAS is processing at the moment, then it would make it easier to find and debug the program when errors or warnings occur. It doesn't necessarily have to be a macro
Show full article (0.53Kb)
Rune - something like this should work. Using the _infile_ variable to avoid unnecessary i/o. Untested: data tp07_dok_fix_hex09 tp07_dok_badrecs_hex09; infile dok dlm = "&_mvar_dlm" recfm = &rf_d lrecl = 580; file dok_fix recfm = &rf_d lrecl = 580 pad; input; Count=countc(_infile_, '09'x); Line+1; if index(_infile_, '09'x) then     

Group: comp.softsys.sas · Group Profile · Search for Runnest in comp.softsys.sas
Author: Lou
Date: Sep 19, 2008 05:52

This is how I might to it. 1) You don't need need all those infile options and 2) to replace single character TRANSLATE is the best function choice. 3) You can count the tabs in each line with COUNT function. This method updates the file in place which is slightly more efficient. The first data step just makes some fixed length data with tabs. You can ignore that. filename dok 'dok.dat'
Show full article (2.38Kb) · Show article thread
On Aug 30, 12:38 pm, "Rune Runnestø" <r...@fastlane.no> wrote: > Control signs ofte make trouble by causing parallel displacement when they > occur in files which have fixed record length or where the values of > variables have spesific, fixed start positions. > The code below is tested on a file containing the tabulator sign, '09'x in > hexadecimal value, and changing it to space (hexadecimal     

Group: comp.softsys.sas · Group Profile · Search for Runnest in comp.softsys.sas
Author: pchoate
Date: Aug 30, 2008 10:12

I think if you want to use the same infile / file, you have to split it in two parts with a temporary SAS ds: filename xx "whatever.csv"; data a; length a $200; /* or longer, depending on the CSV-file. */ infile xx; input; a = _infile_; if 1 then output; run; data _null_; set a; file xx; put a; run; Gerhard On Tue, 26 Aug 2008 08:00:46 -0400, Don Henderson
Show full article (4.04Kb) · Show article thread
Since this question comes up quite regularly here, I took the liberty to create a page on sasCommunity that lists some of the suggested solutions (at least the ones I could remember): http://www.sascommunity.org/wiki/Create_a_CSV_file_without_column_names/hea ders_in_row_1 and in case it wraps: http://tinyurl.com/5flyme I included 5 different methods - but only provided the details for     

Group: comp.softsys.sas · Group Profile · Search for Runnest in comp.softsys.sas
Author: "./ ADD NAME=Data _null_,"
Date: Aug 30, 2008 08:51

Again, this is just illustrative code that may or may-not help Rune with her problem. Uses colon and space delimiters to id label/value pairs. data _null_; infile cards delimiter = ': '; retain bu -1; input @; scs = count(_infile_, ':'); do i = 1 to scs; input label :$&32. value :$&32. @; put label +bu ': ' value +4 @; if label =: 'Label X' then do; input value
Show full article (1.26Kb)
Rune I see your second post but I don't quite understand what you want done in some of the cases. In the meantime, here is a different approach that uses the substr function "on the left" which is a usage that I have always found mind boggling due to the syntax. data rune; infile cards missover; input str $ 50.; substr(str ,17 ,1 )= '#' ; newstr = tranwrd( str , '#' , 'ARKIV: ');** it     

Group: comp.softsys.sas · Group Profile · Search for Runnest in comp.softsys.sas
Author: RolandRB
Date: Aug 30, 2008 04:03

Rune mentions not what result is desired when the condition "label of the first data value is 'ARKIV:'" is absent, but an illustration of column input etc might be helpful: data _null_; input f1 $1-6 f2 $8-12 f3 $17-34; label = ifc(f1 =: 'ARKIV:', 'ARKIV TEKST:', ' '); put f1 $1-6 f2 $8-12 label $17-34 f3 $35-50;; cards; ARKIV: A Text string nr. 1 ARKIV: A 11 Text
Show full article (4.21Kb) · Show article thread
    

Group: comp.softsys.sas · Group Profile · Search for Runnest in comp.softsys.sas
Author: Gerhard Hellriegel
Date: Aug 26, 2008 05:34

Show full article (5.16Kb)
    

Group: comp.softsys.sas · Group Profile · Search for Runnest in comp.softsys.sas
Author: Don Henderson
Date: Aug 26, 2008 05:00

Show full article (4.71Kb)
    

Group: comp.softsys.sas · Group Profile · Search for Runnest in comp.softsys.sas
Author: Peetie Wheatstraw
Date: Aug 23, 2008 15:27

Show full article (1.86Kb) · Show article thread
    

Group: comp.softsys.sas · Group Profile · Search for Runnest in comp.softsys.sas
Author: Nat Wooding
Date: Aug 23, 2008 09:16

Show full article (0.75Kb)
    

Group: comp.softsys.sas · Group Profile · Search for Runnest in comp.softsys.sas
Author: Peetie Wheatstraw
Date: Aug 22, 2008 18:59

Show full article (1.64Kb) · Show article thread
1 · 2 · 3 · 4 · 5 · 6 · 7 · 8 · 9 · next