Options
All
  • Public
  • Public/Protected
  • All
Menu

Class to handle creation of data sets

Hierarchy

  • Create

Index

Methods

Static dataSet

Static dataSetLike

Static dataSetValidateOptions

Static uss

Static vsam

  • Create a VSAM cluster

    example
    
        sessCfg: ISession = yourFunctionToCreateSessCfgFromArgs(commandParameters.arguments);
        sessCfgWithCreds = await ConnectionPropsForSessCfg.addPropsOrPrompt<ISession>(
            sessCfg, commandParameters.arguments
        );
        session = new Session(sessCfgWithCreds);
    
        // The option keys are defined in ZosFilesCreateOptions,
        // ZosFilesCreateExtraOptions and VsamCreateOptions.
        //
        const createVsamOptions: Partial<ICreateVsamOptions> = {
            dsorg: "INDEXED",
            size: "640KB",
            secondary: 64
            showAttributes: true
        }));
    
        try {
            createResponse = await Create.vsam(
                session, "SOME.DATASET.NAME", createVsamOptions
            );
        }
        catch (impErr) {
            // handle any error
        }
    
        // use the results in createResponse.commandResponse
    

    Parameters

    • session: AbstractSession

      An established z/OSMF session

    • dataSetName: string

      the name of the dataset for the created cluster

    • Optional options: Partial<ICreateVsamOptions>

      options for the creation of the cluster

    Returns Promise<IZosFilesResponse>

Static Private vsamConvertToIdcamsOptions

Static Private vsamFormIdcamsCreateCmd

Static Private vsamValidateOptions

Static zfs

Static Private zfsValidateOptions

Generated using TypeDoc