Identify AFT jobs
Identify AFT jobs
Hi,
is it possible to identify orderid=01xyz as AFT job or not by using cli commands? How? I did not find anything. Maybe you have some idea.
Best regards,
Vince
is it possible to identify orderid=01xyz as AFT job or not by using cli commands? How? I did not find anything. Maybe you have some idea.
Best regards,
Vince
Well, I went through (and, in fact, using regularly) ctmpsm, but I did not find any option distinguishing between "normal" jobs and AFT jobs. Maybe it is my fault, missed one option or parameter, but have not found AFT indicator. Please specify the command, which will show AFT jobs.
Best regards,
Vince
Best regards,
Vince
Hi,
If you have indentified the 'orderid' use the 'p_36' utility to convert orderid to orderno and vice-versa
orderid to orderno : p_36 <orderid>
orderno to orderid : p_36 "*<orderno>"
After this you can execute a SQL query to locate the AFT job:
select JOBNAME, APPLFORM from CMR_AJF where ORDERNO='your_orderno'
If you want to located all AFT in your AJF jobs use this SQL query:
select JOBNAME from CMR_AJF where APPLFORM='AFT'
If you have indentified the 'orderid' use the 'p_36' utility to convert orderid to orderno and vice-versa
orderid to orderno : p_36 <orderid>
orderno to orderid : p_36 "*<orderno>"
After this you can execute a SQL query to locate the AFT job:
select JOBNAME, APPLFORM from CMR_AJF where ORDERNO='your_orderno'
If you want to located all AFT in your AJF jobs use this SQL query:
select JOBNAME from CMR_AJF where APPLFORM='AFT'
Best regards
Walty
Walty
Hi vpaldi,
I just tried this test and i think that the output can be manipulated by script without problems.
ctmpsm -LISTFULLDETAILS 3wqab|egrep "(Jobname:|%%FTP)"
Jobname: xxx-xxxxx-xxx (is the jobname of your AFT job)
autoedit: %%FTP-ACCOUNT | value: local_remote
autoedit: %%FTP-LPATH1 | value: /tmp/transfer/my_file_local
autoedit: %%FTP-RPATH1 | value: /tmp/transfer/my_file_remote
autoedit: %%FTP-UPLOAD1 | value: 0
autoedit: %%FTP-SRCOPT1 | value: 0
autoedit: %%FTP-TYPE1 | value: I
autoedit: %%FTP-TRANSFER_NUM | value: 1
autoedit: %%FTP-ST1 | value: Ended OK
autoedit: %%FTP-PR1 | value: 100
autoedit: %%FTP-RT1 | value: 00:00:00
autoedit: %%FTP-TR1 | value: 117.6 KB / 117.6 KB
autoedit: %%FTP-RA1 | value: 117.6 KB/sec
autoedit: %%FTP-FAILED_POINT | value: -1:-1
autoedit: %%FTP-TID | value: 3wqab_00001
I just tried this test and i think that the output can be manipulated by script without problems.
ctmpsm -LISTFULLDETAILS 3wqab|egrep "(Jobname:|%%FTP)"
Jobname: xxx-xxxxx-xxx (is the jobname of your AFT job)
autoedit: %%FTP-ACCOUNT | value: local_remote
autoedit: %%FTP-LPATH1 | value: /tmp/transfer/my_file_local
autoedit: %%FTP-RPATH1 | value: /tmp/transfer/my_file_remote
autoedit: %%FTP-UPLOAD1 | value: 0
autoedit: %%FTP-SRCOPT1 | value: 0
autoedit: %%FTP-TYPE1 | value: I
autoedit: %%FTP-TRANSFER_NUM | value: 1
autoedit: %%FTP-ST1 | value: Ended OK
autoedit: %%FTP-PR1 | value: 100
autoedit: %%FTP-RT1 | value: 00:00:00
autoedit: %%FTP-TR1 | value: 117.6 KB / 117.6 KB
autoedit: %%FTP-RA1 | value: 117.6 KB/sec
autoedit: %%FTP-FAILED_POINT | value: -1:-1
autoedit: %%FTP-TID | value: 3wqab_00001
Best regards
Walty
Walty
Hi,
this might be the solution. Obtaining the list of all jobs from the AJF, ask for LISTFULLDETAILS in a loop, grep let's say %%FTP-ACCOUNT (unlikely that a "normal job" uses that autoedit var) and work accordingly. Ugly but will work for sure.
My approach was the opposit: obtain the list of jobs with ONE single command, which contains the indicator of AFT.
Congratulation, you won this game. Best regards,
Vince
this might be the solution. Obtaining the list of all jobs from the AJF, ask for LISTFULLDETAILS in a loop, grep let's say %%FTP-ACCOUNT (unlikely that a "normal job" uses that autoedit var) and work accordingly. Ugly but will work for sure.
My approach was the opposit: obtain the list of jobs with ONE single command, which contains the indicator of AFT.
Congratulation, you won this game. Best regards,
Vince