× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Sean,
Thanks for the correction!

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Porterfield, Sean
Sent: Thursday, August 02, 2012 8:01 AM
To: Midrange Systems Technical Discussion
Subject: RE: Finding the job date of another job

No, Gary, those parameters are for the variables to store information from the current job. They cannot be used to specify another job.

Help text (last sentence is the important bit):

The Retrieve Job Attributes (RTVJOBA) command is used in a CL program or REXX procedure to retrieve the values of one or more job attributes and place the values into the specified variable. The attributes are retrieved for the job in which this command is used.
--
Sean Porterfield


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Gary Thompson
Sent: Thursday, August 02, 2012 09:51
To: Midrange Systems Technical Discussion
Subject: RE: Finding the job date of another job

Jeff,
RTVJOBA JOB(MYJOB) USER(ME) NBR(123456)

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jeff.Nyco
Sent: Thursday, August 02, 2012 7:39 AM
To: 'Midrange Systems Technical Discussion'
Subject: RE: Finding the job date of another job

RTVJOBA is exclusively for the current job.

I would write a CLP with the following steps:

a) DSPJOB to *PRINT. The spoolfile contains: Date Entered System, Date
Started, Job Date
b) CPYSPLF to a PF
c) RCVF each record until I found the string containing to line-label I
was looking for
d) You may also require the date-format ... search for 'DATFMT'
e) Extract the date-data, pass values back to the calling program

It's a bit of a phaff I know, but the CL is simple enough; with a command to simplify the passing of the Job-Id and receiving the return-values, easy to incorporate it into other CL programs.

I can hear the purists screaming "API's" at me and I take your point if it's performance, but API's can be so much trickier to code, and whether the GETJOBA command takes 1ms or 1s, it's usually not a hill of beans.

Regards

Jeff Bull
iSeries Technical Consultant
NYCO Ltd - iSeries & AS/400 Automation Specialists
Tel: +44(0)20 8416 3778
Fax: +44(0)20 8416 3779
Mobile: +44(0)77 5692 3335
Email: jeff.bull@xxxxxxxxxx
Website: www.nyco.co.uk
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jeff Crosby
Sent: 02 August 2012 13:43
To: Midrange Systems Technical Discussion
Subject: Re: Finding the job date of another job

RTVJOBA


On Wed, Aug 1, 2012 at 8:13 PM, Charles Sallee
<csallee@xxxxxxxxxxxxxxx>wrote:

I am trying to find a way in a CL to determine the job date of another
(a different) job from the one I am currently running. Any ideas?



Thanks,

Chuck Sallee
CIS Manager
Lexington Division of Police
csallee@xxxxxxxxxxxxxxx <mailto:csallee@xxxxxxxxxxxxxxx>

IBM i on Power - For when you can't afford to be out of business.


NOTICE: This electronic transmission is confidential and intended only
for the person(s) to whom it is addressed. If you have received this
transmission in error, please notify the sender by return e-mail and
destroy this message in its entirety (including all attachments).
P Please consider the environment before printing this e-mail.




--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
http://archive.midrange.com/midrange-l.





--
Jeff Crosby
VP Information Systems
UniPro FoodService/Dilgard
P.O. Box 13369
Ft. Wayne, IN 46868-3369
260-422-7531
www.dilgardfoods.com

The opinions expressed are my own and not necessarily the opinion of my company. Unless I say so.
--


This email is confidential, intended only for the named recipient(s) above and may contain information that is privileged. If you have received this message in error or are not the named recipient(s), please notify the sender immediately and delete this email message from your computer as any and all unauthorized distribution or use of this message is strictly prohibited. Thank you.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.