Hello I am trying to create a bat file that will put all of the text files that exist in my folder. These text files are required to generate define.xml for study tabulation data. Here's the code I used: filename dotbat "make_define.bat"; data _null_; file dotbat notitles; drive = substr("&path",1,2); put @1 drive; put @1 "cd &path"; put @1 "type define_header.txt valuelist.txt whereclause.txt itemgroupdef.txt itemdef.txt itemdef_value.txt codelist.txt compmethod.txt comments.txt leaves.txt" @@; put " closeit.txt > define.xml " ; put @1 "exit"; run; x "make_define"; When I ran the code, it creates a Window Batch File called make_define; however when I opened it in Notepad it basically repeats the code but no information about metadata it should have. I've never created a bat file before, but shouldn't it create a file that has all the information in the text files combined? Any suggestion would be greatly appreciated!
... View more