Hello, I'll like to know if there's a limite in the number of characters in the source/target path of the SAS Enterprise Guide Copy File Task? I noticed when copying from Windows to Linux that source path below 255 characters are truncated. My labtop is Windows 10 and SAS 9.4 is installed on Linux. I have read that Windows paths are limited to 255 characters so not sure why the EG Task is truncating. I understand it is not a good practice to have long path names but these are business folders with a naming convention. So I'll like to understand the Copy Task limit before considering any review of the folder architecture. My SAS is in French so I have translated the Log to English. So output might be different if you intend to execute at your end. Example KO path length = 236: source file = D:\OAAM\SAS2\groupe2\GPBM_COVEACONTROLEECONOMIQUE\10_Outils\2021\4_SEMESTRIEL\4_4 COVEA\4_4_1 ABC PROD\4_4_1_9 PRECALCUL\4_4_1_9_4 DONNEES REFAC\CHGM_NET_PRECALCUL_PR\PRECALCUL_PRECALCUL\CHGM_NET_PRECALCUL_PR_202112_20210_1234_260.xlsx Log: Dowloading file from "PP20050810" to SAS session on "MMAApp". Using the following parameters: Source file specification : D:\OAAM\SAS2\groupe2\GPBM_COVEACONTROLEECONOMIQUE\10_Outils\2021\4_SEMESTRIEL\4_4 COVEA\4_4_1 ABC PROD\4_4_1_9 PRECALCUL\4_4_1_9_4 DONNEES REFAC\CHGM_NET_PRECALCUL_PR\PRECALCUL_PRECALCUL\CHGM_NET_PRECALCUL_PR_202112_20210_1234_260.xlsx Destination : /users/$USER/sources/ Replace existing file: Yes Resolve macro varaibles on paths : Yes Convert end of line for text files : No NOTE: Resolving macro variable expressions in file paths. SAS Log : 1 ;*';*";*/;quit;run; 2 OPTIONS PAGENO=MIN; 3 %let _egcopySource = D:\OAAM\SAS2\groupe2\GPBM_COVEACONTROLEECONOMIQUE\10_Outils\2021\4_SEMESTRIEL\4_4 COVEA\4_4_1 ABC 3 ! PROD\4_4_1_9 PRECALCUL\4_4_1_9_4 DONNEES 3 ! REFAC\CHGM_NET_PRECALCUL_PR\PRECALCUL_PRECALCUL\CHGM_NET_PRECALCUL_PR_202112_20210_1234_260.xlsx; 4 %let _egcopyTarget = /users/$USER/sources/; 5 %put Source files resolve to &_egcopySource; Source files resolve to D:\OAAM\SAS2\groupe2\GPBM_COVEACONTROLEECONOMIQUE\10_Outils\2021\4_SEMESTRIEL\4_4 COVEA\4_4_1 ABC PROD\4_4_1_9 PRECALCUL\4_4_1_9_4 DONNEES REFAC\CHGM_NET_PRECALCUL_PR\PRECALCUL_PRECALCUL\CHGM_NET_PRECALCUL_PR_202112_20210_1234_260.xlsx 6 %put Target folder resolves to &_egcopyTarget; Target folder resolves to /users/$USER/sources/ 7 8 QUIT; RUN; 9 NOTE: Source file resolves to D:\OAAM\SAS2\groupe2\GPBM_COVEACONTROLEECONOMIQUE\10_Outils\2021\4_SEMESTRIEL\4_4 COVEA\4_4_1 ABC PROD\4_4_1_9 PRECALCUL\4_4_1_9_4 DONNEES REFAC\CHGM_NET_PRECALCUL_PR\PRECALCUL_PRECALCUL\CHGM_NET_PREC NOTE: target folder resolves to /users/$USER/sources/ ERROR: the file D:\OAAM\SAS2\groupe2\GPBM_COVEACONTROLEECONOMIQUE\10_Outils\2021\4_SEMESTRIEL\4_4 COVEA\4_4_1 ABC PROD\4_4_1_9 PRECALCUL\4_4_1_9_4 DONNEES REFAC\CHGM_NET_PRECALCUL_PR\PRECALCUL_PRECALCUL\CHGM_NET_PREC does not exist on PP20050810 NOTE: Copied 0 bytes in 3,98 seconds. NOTE: number of files : 0 Using wilcard OK: source path: D:\OAAM\SAS2\groupe2\GPBM_COVEACONTROLEECONOMIQUE\10_Outils\2021\4_SEMESTRIEL\4_4 COVEA\4_4_1 ABC PROD\4_4_1_9 PRECALCUL\4_4_1_9_4 DONNEES REFAC\CHGM_NET_PRECALCUL_PR\PRECALCUL_PRECALCUL\* Log: Dowloading file from "PP20050810" to SAS session on "MMAApp". Using the Following parameters: Source file specification : D:\OAAM\SAS2\groupe2\GPBM_COVEACONTROLEECONOMIQUE\10_Outils\2021\4_SEMESTRIEL\4_4 COVEA\4_4_1 ABC PROD\4_4_1_9 PRECALCUL\4_4_1_9_4 DONNEES REFAC\CHGM_NET_PRECALCUL_PR\PRECALCUL_PRECALCUL\* Destination : /users/$USER/sources/ Replace existing file: Yes Resolve macro varaibles on paths : Yes Convert end of line for text files : No NOTE: Resolving macro variable expressions in file paths. SAS Log : 1 The SAS System 10:01 Monday, June 28, 2021 1 ;*';*";*/;quit;run; 2 OPTIONS PAGENO=MIN; 3 %let _egcopySource = D:\OAAM\SAS2\groupe2\GPBM_COVEACONTROLEECONOMIQUE\10_Outils\2021\4_SEMESTRIEL\4_4 COVEA\4_4_1 ABC 3 ! PROD\4_4_1_9 PRECALCUL\4_4_1_9_4 DONNEES REFAC\CHGM_NET_PRECALCUL_PR\PRECALCUL_PRECALCUL\*; 4 %let _egcopyTarget = /users/$USER/sources/; 5 %put Source files resolve to &_egcopySource; Source files resolve to D:\OAAM\SAS2\groupe2\GPBM_COVEACONTROLEECONOMIQUE\10_Outils\2021\4_SEMESTRIEL\4_4 COVEA\4_4_1 ABC PROD\4_4_1_9 PRECALCUL\4_4_1_9_4 DONNEES REFAC\CHGM_NET_PRECALCUL_PR\PRECALCUL_PRECALCUL\* 6 %put Target folder resolves to &_egcopyTarget; Target folder resolves to /users/$USER/sources/ 7 8 QUIT; RUN; 9 NOTE: Source file resolves to D:\OAAM\SAS2\groupe2\GPBM_COVEACONTROLEECONOMIQUE\10_Outils\2021\4_SEMESTRIEL\4_4 COVEA\4_4_1 ABC PROD\4_4_1_9 PRECALCUL\4_4_1_9_4 DONNEES REFAC\CHGM_NET_PRECALCUL_PR\PRECALCUL_PRECALCUL\* NOTE: Target folder resolves to : /users/$USER/sources/ NOTE: Resolving wildcard character in D:\OAAM\SAS2\groupe2\GPBM_COVEACONTROLEECONOMIQUE\10_Outils\2021\4_SEMESTRIEL\4_4 COVEA\4_4_1 ABC PROD\4_4_1_9 PRECALCUL\4_4_1_9_4 DONNEES REFAC\CHGM_NET_PRECALCUL_PR\PRECALCUL_PRECALCUL\* to determine files to be downloaded towards the server Files found : D:\OAAM\SAS2\groupe2\GPBM_COVEACONTROLEECONOMIQUE\10_Outils\2021\4_SEMESTRIEL\4_4 COVEA\4_4_1 ABC PROD\4_4_1_9 PRECALCUL\4_4_1_9_4 DONNEES REFAC\CHGM_NET_PRECALCUL_PR\PRECALCUL_PRECALCUL\CHGM_NET_PRECALCUL_PR_202112_20210_1234_260.xlsx Downloading of D:\OAAM\SAS2\groupe2\GPBM_COVEACONTROLEECONOMIQUE\10_Outils\2021\4_SEMESTRIEL\4_4 COVEA\4_4_1 ABC PROD\4_4_1_9 PRECALCUL\4_4_1_9_4 DONNEES REFAC\CHGM_NET_PRECALCUL_PR\PRECALCUL_PRECALCUL\CHGM_NET_PRECALCUL_PR_202112_20210_1234_260.xlsx vers /users/$USER/sources/CHGM_NET_PRECALCUL_PR_202112_20210_1234_260.xlsx ... …Downloading towards server CHGM_NET_PRECALCUL_PR_202112_20210_1234_260.xlsx, 964 639 bytes NOTE: Copied 964 639 bytes en 5,22 seconds. NOTE: Number of files : 1 Thanks for your inputs. Regards,
... View more