Page 1 of 1

Program Interface(PIF) for Searching a Opearion(job) in TWS

PostPosted: Thu Sep 29, 2011 6:35 pm
by Karthik_v
Hi All,

I have the below requirement

I have to write one Program Interface(PIF) that takes TWS operation (job) name as input

and searches for that operation(job) in all Applications that exists in

TWS data base AD .It should give a return code zero if the job exists in any of the Applications

I searched Program Interfaces document in that for ADOP Segment I see

ADOPJN as parameter for jobname. But I dont see the segment ADOP listed under LIST or SELECT Action code


Could you please advise under which Action code I need to use ADOP segment to get the required result ?.Thanks

Re: Program Interface(PIF) for Searching a Opearion(job) in

PostPosted: Wed Dec 14, 2011 8:11 pm
by sbec
Hi,
I face a simular Problem here.
If i LIST or SELECT ADCOM
i only get Segment ADCOM back... I try to loop through all the Segemnts, but the 2nd one is already <BLANK> showing the End the the Data_Area
How do i get ADOP / ADDEP / ADRUN /ADSR Segments ?

Also with LIST ADKEY, i only get the ADKEY Segment back.

Regards
Sbec

Re: Program Interface(PIF) for Searching a Opearion(job) in

PostPosted: Thu Dec 15, 2011 2:04 pm
by sbec
Got the Solution:

1.st you do a List of ADCOM ADID .... then you Get VALFROM STATUS.....
2. You SELECT AD for this ADID VALFROM STATUS...in the AD you get all the Segments

Greets

Re: Program Interface(PIF) for Searching a Opearion(job) in

PostPosted: Thu Dec 15, 2011 2:23 pm
by BillyBoyo
Thanks for letting us know.