vba/sas - Proc import csv creates problems when SAS is run through VBA

I have written the following VBA code to automate SAS processes.

  Rem Start the SAS server
  Dim SASws As SAS.Workspace
  Dim SASwsm As New SASWorkspaceManager.WorkspaceManager
  Dim strError As String
  Set SASws = SASwsm.Workspaces.CreateWorkspaceByServer _
    ("MySAS", VisibilityProcess, Nothing, "", "", strError)
  Dim code_location As String, code_name As String, param_str As String
  Dim param_flag As Boolean
  code_location = "file:" & ThisWorkbook.Sheets("Control").Range("B2").Value
  code_name = ThisWorkbook.Sheets("Control").Range("C2").Value
  param_flag = ThisWorkbook.Sheets("Control").Range("C4").Value
  If param_flag = True Then
  param_str = ThisWorkbook.Sheets("Control").Range("D5").Value
  Else: param_str = "ds=Sasuser.Export_output"
  End If

  Rem Run the stored process
  Dim SASproc As SAS.StoredProcessService
  Set SASproc = SASws.LanguageService.StoredProcessService
  SASproc.Repository = code_location
  SASproc.Execute code_name, "ds=Sasuser.Export_output"
  'SASproc.Repository = "file:C:\Duopa_Repository\SAS_Codes\Weekly"
  'SASproc.Execute "weekly_refresh_run.sas", "ds=Sasuser.Export_output"

  Rem Shut down the SAS server
  SASwsm.Workspaces.RemoveWorkspaceByUUID SASws.UniqueIdentifier
  SASws.Close
  Set SASws = Nothing

All the SAS codes seem to work through this except the ones that import csv files using proc import method. Can someone please explain me why

Thanks in advance