import { AbstractSession , IHandlerParameters , TextUtils } from "@zowe/imperative" ; import { IZosFilesResponse , Invoke , IZosFilesOptions } from "@zowe/zos-files-for-zowe-sdk" ; import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler" ; export export default class AmsFileHandler extends ZosFilesBaseHandler { public async processWithSession ( commandParameters , session ) { const zosFilesOptions = { responseTimeout : commandParameters . arguments . responseTimeout } ; const response = await Invoke . ams ( session , commandParameters . arguments . controlStatementsFile , zosFilesOptions ) ; commandParameters . response . console . log ( TextUtils . prettyJson ( response . apiResponse ) ) ; return response ; } }