Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Upload

Index

Accessors

Static Private log

Methods

Static bufferToDataSet

Static bufferToUssFile

Static dirToPds

Static dirToUSSDir

Static dirToUSSDirRecursive

Static fileToDataset

Static fileToUssFile

Static Private formatStringForDisplay

  • formatStringForDisplay(stringInput: string): string

Static Private generateHeadersBasedOnOptions

Static Private getDirs

Static Private hasDirs

  • hasDirs(dirPath: string): boolean

Static isDirectoryExist

Static pathToDataSet

  • Upload content from input path to dataSet or PDS members

    throws

    {ImperativeError} When encounter error scenarios.

    example

    pathToDataSet(session, "file.txt", "ps.name")

    example

    pathToDataset(session, "file.txt", "psd.name(member)")

    example

    pathToDataSet(session, "directory", "pds.name")

    example

    pathToDataset(session, "/full/path/file.txt", "ps.name")

    Note: This method does everything needed to do from checking if path is file or directory and if data set is sequential file or PDS to determine what name to be used when upload content to data set. All you have to specify is a directory and a dsname.

    Parameters

    • session: AbstractSession

      z/OS connection info

    • inputPath: string

      User input path to file or directory

    • dataSetName: string

      Name of the data set to write to

    • Default value options: IUploadOptions = {}

    Returns Promise<IZosFilesResponse>

    A response indicating the out come

Static streamToDataSet

Static streamToUssFile

Static Private uploadFile

Generated using TypeDoc