Forum Discussion

KTsnap's avatar
KTsnap
New Contributor III
4 years ago

To access Mainframe Dataset

Hi All,

I am trying to access a data set which is present in mainframe…the dataset name looks like this : ‘PSSP.CUS.INBND.CUSTOMER’ .

When I try to access same dataset/file through filezilla…i am able to access…
But when am trying from file reader/directory browser by giving path as ftp://host/‘PSSP.CUS.INBND.CUSTOMER’ … Snap sends out error and it says path doesn’t not exist…

Could you please help us if there is any specific format to give dataset name in file reader.

9 Replies

  • bojanvelevski's avatar
    bojanvelevski
    Valued Contributor

    You need to encode the special characters with the encodeURIComponent() method. It should look something like this:

    "ftp://host/"+encodeURIComponent('‘PSSP.CUS.INBND.CUSTOMER’')

  • KTsnap's avatar
    KTsnap
    New Contributor III

    Te dataset starts with single quote and ends with single quote.

    I tried with quotes , without quotes , and also the way u have given …but it is not showing any result.

    • bojanvelevski's avatar
      bojanvelevski
      Valued Contributor

      Do you have access to the ftp using filezilla or any other third party app? If so, you can right click and copy url path to file. Send the url or just the filename here, while wraping it in `. Additionally send a screenshot of the file.

  • bojanvelevski's avatar
    bojanvelevski
    Valued Contributor

    Well, as I can see, the TSSP.CUS.BFO.INBND.CUSTOMER
    Is not a filename, but folder structure path. Per my opinion the dots should be changed to slashes.

    TSSP/CUS/BFO/INBND/CUSTOMER