This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %macro pathtoroot(data=,Childid=,Parentid=); | |
| data pathToRoot; | |
| attrib pathToRoot length=$350; | |
| attrib uuid length=$36; | |
| run; | |
| *Finder antal rækker i alt; | |
| data _null_; | |
| call symputx( "tot" ,tot); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ***********************************************************************; | |
| * Projekt : Makro | |
| * | |
| * Program name : | |
| * | |
| * Path : | |
| * | |
| * Author : Rud Faden | |
| * | |
| * Date created : |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %let _output=DimDato; | |
| proc datasets lib=work nolist; | |
| delete &_output; | |
| run; | |
| data workspde.&_output; | |
| length | |
| DatoKey 8 | |
| dato 8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %let target_folder=/sasfolders/data/IBprojekt/HRSTAT/produktion/programmer/krl/; | |
| *makes it indifferent wheter or not you add / to the end of the string; | |
| %let target_folder=%tslit(%sysfunc(tranwrd(%sysfunc(cats(&target_folder,/)),//,/))); | |
| filename pipedir PIPE | |
| "ls -la --time-style=full-iso &target_folder.*.* | grep '^-'" encoding='utf-8'; | |
| DATA _sm_filenames; | |
| length filsti $1000 filnavn $100 navn $100 bytes 6. filDato 8.; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| COMMENT: [Makroen beregner fødselsdag ud fra CPR-nummer] | |
| PARAMETERS: [InputDS: Inputdataset | |
| ,OutputDS: Outputdataset | |
| ,CPRKolonne: Kolonne i InputDS, som indeholder det CPR-nummer der skal beregnes på | |
| ,FoedselsdatoKolonne: navnet på den kolonne der skal indeholde fødselsdatoen (Kolonnen er en SASdato med formatet date9.). | |
| ] | |
| EXAMPLE: [%BeregnFodselsdatoFraCPR(InputDS=test,OutputDS=test2,CPRKolonne=CPR,FoedselsdatoKolonne=dag);] | |
| VARIABLE: [Makroen returnerer datasettet &OutputDS., som er lig &InputDS. tilføjet kolonnen &FoedselsdatoKolonne.] | |
| HISTORY: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "folders": | |
| [ | |
| { "follow_symlinks": true, | |
| "name": "Root", | |
| "path": "Main", | |
| "file_exclude_patterns": | |
| [ | |
| "*.acn", | |
| "*.acr", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "file_exclude_patterns": | |
| [ | |
| "*.aux", | |
| "*.glo", | |
| "*.idx", | |
| "*.log", | |
| "*.toc", | |
| "*.ist", | |
| "*.acn", | |
| "*.acr", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *.aux | |
| *.glo | |
| *.idx | |
| *.log | |
| *.toc | |
| *.ist | |
| *.acn | |
| *.acr | |
| *.alg | |
| *.bbl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Some things taken from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # Set the colours you can use | |
| black='\033[0;30m' | |
| white='\033[0;37m' | |
| red='\033[0;31m' | |
| green='\033[0;32m' |