- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Folder empty
The script create the folder, but the folder is empty. I don't have the answer for that:
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Folder empty
There are 2 issues
- Your IF() function for saving the file, when the directory exists, has no action.
I believe what you want isIf( Directory Exists( path_save || DIR_NAME ),, dt<< Save(path_save || DIR_NAME || "\" || DIR_NAME || ".jsl", Append) );
If( Directory Exists( path_save || DIR_NAME ), dt<< Save(path_save || DIR_NAME || "\" || DIR_NAME || ".jsl", Append) );
- The second issue is that you are attempting to save the data table(dt) as JSL. Saving a data table using the Save() function only can be saved as .jmp, .xls, .slsx, .txt, .csv, .tsv, .sas7bdat, .xpt and .stx
Jim
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Folder empty
There are 2 issues
- Your IF() function for saving the file, when the directory exists, has no action.
I believe what you want isIf( Directory Exists( path_save || DIR_NAME ),, dt<< Save(path_save || DIR_NAME || "\" || DIR_NAME || ".jsl", Append) );
If( Directory Exists( path_save || DIR_NAME ), dt<< Save(path_save || DIR_NAME || "\" || DIR_NAME || ".jsl", Append) );
- The second issue is that you are attempting to save the data table(dt) as JSL. Saving a data table using the Save() function only can be saved as .jmp, .xls, .slsx, .txt, .csv, .tsv, .sas7bdat, .xpt and .stx
Jim