Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Utilities

Index

Methods

Static applyTaggedEncoding

Static chtag

  • Changes the tag attributes associate with a file using function chtag

    This function uses a JSON payload to set the information via zosmf utilities function

    throws

    {ImperativeError}

    Parameters

    • session: AbstractSession

      z/OSMF connection info

    • ussFileName: string
    • type: Tag

      enum of chtag type of Test, Binary or Mixed

    • Optional codeset: string

      optional string describing codeset e.g. IBM-1047

    Returns Promise<IZosFilesResponse>

    Promise that resolves to response object

Static isFileTagBinOrAscii

  • Based upon the files chtag value. Identify how the tagging should be interpretted when transferring the contents For example an EBCDIC file would always be converted from it's EBCDIC value to the ASCII

    An ASCII file value or binary should not be converted.

    The default value if the tag is not set or in an invalid state correctly is to convert.

    throws

    {ImperativeError}

    Parameters

    • session: AbstractSession

      z/OSMF connection info

    • USSFileName: string

      contains the file name

    Returns Promise<boolean>

    Promise that resolves to true if the file is binary or ASCII text or false if file should likely be converted to text. Default is false which aligns with the zosmf default behavior converting

Static putUSSPayload

  • Retrieve various details from USS file functions

    This function uses a JSON payload to retrieve information via zosmf utilities function

    throws

    {ImperativeError}

    Parameters

    • session: AbstractSession

      z/OSMF connection info

    • USSFileName: string

      contains the file name

    • payload: any

      contains the options to be sent

    Returns Promise<Buffer>

    Promise that resolves to json information

Static renameUSSFile

Generated using TypeDoc