BookmarkSubscribeRSS Feed
sanbra
Fluorite | Level 6

Dear Community,

 

I want to automate the creation of Archives with SAS 9.4. I am using ODS PACKAGE. In the ODS PACKAG-add-command I use the path-option to reflect the folder structure. However if the path becomes longer than 68 I get a confusing WARNING and the file is not added to the Archive.

Here an example:

ods package(test) open nopf;
ods package(test) add file="C:\Users\biostat\Desktop\Allerlei\tmp\test\test.txt" 
                      path="aaaaaaaaa/bbbbbbbbb/ccccccccc/ddddddddd/eeeeeeeee/fffffffff/gggggggg";
ods package(test) add file="C:\Users\biostat\Desktop\Allerlei\tmp\test\test2.txt" 
                      path="aaaaaaaaa/bbbbbbbbb/ccccccccc/ddddddddd/eeeeeeeee/fffffffff/ggggggggTOOMUCH";
ods package(test) publish archive properties(archive_name="Test.zip" archive_path="C:\Users\biostat\Desktop\Allerlei\tmp\test");
ods package(test)close;

 

and the resulting SAS log:

1 ods package(test) open nopf;
2 ods package(test) add file="C:\Users\biostat\Desktop\Allerlei\tmp\test\test.txt"
3 path="aaaaaaaaa/bbbbbbbbb/ccccccccc/ddddddddd/eeeeeeeee/fffffffff/ggggg
3 ! ggg";
4 ods package(test) add file="C:\Users\biostat\Desktop\Allerlei\tmp\test\test2.txt"
5 path="aaaaaaaaa/bbbbbbbbb/ccccccccc/ddddddddd/eeeeeeeee/fffffffff/ggggg
5 ! gggTOOMUCH";
WARNING: ODS Package ID: TOOM does not exist, no action taken.
6 ods package(test) publish archive properties(archive_name="Test.zip"
6 ! archive_path="C:\Users\biostat\Desktop\Allerlei\tmp\test");
NOTE: Writing TEST file: C:\Users\biostat\Desktop\Allerlei\tmp\test\Test.zip
7 ods package(test)close;

Is something wrong with my syntax or is it in fact not possible to define a path longer than 68? If so is there any work around?

 

susanne

2 REPLIES 2
Cynthia_sas
Diamond | Level 26
Hi:
I'd recommend opening a track with Tech Support on this.
Cynthia
sanbra
Fluorite | Level 6

Hi,

Thanks for your reply.

I conntacted Tech Support, it seems to be a SAS issue and they are think about a "Software solution".

There is no work around, the path must be Shorter than 68 characters.

susanne

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1933 views
  • 1 like
  • 2 in conversation