SAS
||
|
CATS()
MERGE
Windows10
Azure
Problem In Windows10, Start> Photo icon > Change account settings > Access work or school > Connected to GREENLIGHT CLINICAL PTY LTD's Azure AD > Info > Sync.
Device sync status is always "The sync is in progress"
or The sync can not be initiated (0x1)
ERROR An error occurred executing the workspace job "autoexec". SDS Failed to provide the SAS workspace. SAS.EC.Directory.Model.SDSEXception
Cause The cause is unclear.
Solution Closing and relaunching SAS EG resolved the error
ERROR A local SAS server was not found and no metadata profile is being used. Without a SAS server you cannot open data or run SAS programs
Cause Credentials lost to user profile. SAS EG is not able to connect to server
Solution Tools> Connections> Profiles> Modify >
Uncheck "Use Integrated Windsows Authentication"
Check "Save login in profile"
Enter User, Password and Authenticaion domain as the following
Save
Click on the profile > Set Active
On the buttom right corner of SAS EG window, it should show "SAS" rather than "No SAS Profile"
ERROR Formatted values shown as dot in character variable but there is no problem with the format applied
Cause Wrong use of the iterator as highlighted below
Each place is given by: (Number of times) at (Line):(Column). 2648 at 37:13
Line is the line number, 37 here. 13 is number of characters, highlighted below, between line 13 and the code
ERROR A lock is not available for QSDTM.QC_PE.DATA.
The SAS dataset to overwrite is not used by another user or process as
And the SAS dataset cannot be deleted
ERROR ERROR: File SPECS.DATASETS.DATA does not exist.
Cause The file is opened by another user
ERROR NOTE: Character values have been converted to numeric values at the places given by: (Line):(Column).
Cause Concatenate operator || misused as the pipe |
Error An error occurred executing the workspace job The server is disconnected
Cause Slow connection to AWS. This disconnection cancels out the current SAS session. Bring back the macro variables, rerunning autoexec.sas, before rerun the current SAS program
Error: NOTE: Mathematical operations could not be performed at the following places. The results of the operations have been set to missing values. Each place is given by: (Number of times) at (Line):(Column). 15 at 91:30 15 at 92:27
Cause CATS() function placed inside INPUT() function (code commented out below) not working
Cause: Variables AESTDTC_date_min_c and AESTDTC_date_max_c defined in ELSE statement but they are not defined in IF statement
ERROR NOTE: Merge statement has more than one data set with repeats of BY values
Cause If you merge two files by some key variable and the resulting dataset has more observations that the largest input file then it means that there are key values that are present in only one of the files. So if you merge A and B by ID where A has 10 obs and B has 8 obs and the result has more than 10 obs then it there must be some values of ID that appear on only one of the two inputs…MERGE statement has more than one data set with repeats of BY values
Note in the folloing code the resulting dataset has the same obs number as the left table but the warning is still there