import { ICommandDefinition } from "@zowe/imperative" ; import { CreateDefaults } from "@zowe/zos-files-for-zowe-sdk" ; import { ZosFilesCreateExtraOptions , ZosFilesCreateOptions } from "../Create.options" ; import i18nTypings from "../../-strings-/en" ; const strings = ( require ( "../../-strings-/en" ) . default as typeof i18nTypings ) . CREATE ; type { ICommandDefinition } export const PsDefinition = { name : "data-set-sequential" , aliases : [ "ps" ] , description : strings . ACTIONS . DATA_SET_SEQUENTIAL . DESCRIPTION , type : "command" , handler : __dirname + "/Ps.handler" , profile : { optional : [ "zosmf" ] } , positionals : [ { name : "dataSetName" , type : "string" , description : strings . POSITIONALS . DATASETNAME , required : true } ] , options : [ ZosFilesCreateExtraOptions . size , ZosFilesCreateOptions . volser , { ... ZosFilesCreateOptions . primary , defaultValue : CreateDefaults . DATA_SET . SEQUENTIAL . primary } , ZosFilesCreateOptions . secondary , ZosFilesCreateOptions . dirblk , { ... ZosFilesCreateOptions . recfm , defaultValue : CreateDefaults . DATA_SET . SEQUENTIAL . recfm } , { ... ZosFilesCreateOptions . blksize , defaultValue : CreateDefaults . DATA_SET . SEQUENTIAL . blksize } , { ... ZosFilesCreateOptions . lrecl , defaultValue : CreateDefaults . DATA_SET . SEQUENTIAL . lrecl } , ZosFilesCreateOptions . storclass , ZosFilesCreateOptions . mgntclass , ZosFilesCreateOptions . dataclass , ZosFilesCreateOptions . unit , ZosFilesCreateExtraOptions . showAttributes ] . sort ( ( a , b ) => a . name . localeCompare ( b . name ) ) , examples : [ { description : strings . ACTIONS . DATA_SET_SEQUENTIAL . EXAMPLES . EX1 , options : "NEW.PS.DATASET" } ] } ;