You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
zowe zos-ftp view job-status-by-jobid JOB00123
# a table of spool DDs will print, use one of the DD ids such as 4
zowe zos-ftp view spool-file-by-id JOB00123 4
# output for a different DD than the one shown for this ID in the table will print out# for example the output for view ob-status-by-jobid might say ID 4 is "SYSTSPRT" # but using the view spool-file-by-id command
zowe zos-ftp view all-spool-by-jobid JOB00123 on the other hand seems to retrieve all the correct contents.
Invoking [email protected] directly from node seems to get the correct contents every time for me, so I wonder what the cause of the issue is...
constClient=require("zos-node-accessor");(async()=>{try{constconnection=awaitnewClient().connect({user: 'xxx',password: 'xxx',host: 'xxxx',port: 21,pasvTimeout: 60000,secure: false});constmyJobID="JOB06048";conststatus=awaitconnection.getJobStatus({jobId: myJobID,jobName: "*",owner: "*"});console.log(JSON.stringify(status,null,2));constlastSpool=status.spoolFiles[status.spoolFiles.length-1];console.log(`Retrieving first spool file which should be id # ${lastSpool.id}, name '${lastSpool.ddname}'`);constlastSpoolContent=awaitconnection.getJobLog({jobId: myJobID,jobName: "*",fileId: lastSpool.id,owner: "*"});console.log(lastSpoolContent);awaitconnection.close();}catch(e){console.error("Test script error: "+e);console.error(e.stackTrace);}})();
The text was updated successfully, but these errors were encountered:
Hi,
Given a job JOB00123, run these commands:
zowe zos-ftp view all-spool-by-jobid JOB00123
on the other hand seems to retrieve all the correct contents.Invoking [email protected] directly from node seems to get the correct contents every time for me, so I wonder what the cause of the issue is...
The text was updated successfully, but these errors were encountered: