× 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.



Gary,

I was under the impression that using the JOB parm required all three parms of JobName, Userid, JobNumber.

Once I used Job(JobName) I was able to select the last report using SPLNBR(*LAST).

Thanks for pointing this out to me.

Also appreciate everyone suggestions using other commands to do this.

Rogers

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Gary Thompson
Sent: Wednesday, January 30, 2013 10:05 AM
To: Midrange Systems Technical Discussion
Subject: RE: Sending Reports to Mainframe

Lane,
I don't remember using *LAST with CPYSPLF, but the help text:


*LAST
The spooled file with the highest number and the specified file
name is used.


seems to suggest it will do what you want.

However, I don't see that a job name has been specified in your
CPYSPLF command example ??

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Laine, Rogers
Sent: Wednesday, January 30, 2013 8:49 AM
To: 'Midrange Systems Technical Discussion'
Subject: RE: Sending Reports to Mainframe

Gary,

I'm using SPLNBR(*LAST) in CPYSPLF command to only look for last report.

Rogers

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Gary Thompson
Sent: Wednesday, January 30, 2013 9:28 AM
To: Midrange Systems Technical Discussion
Subject: RE: Sending Reports to Mainframe

Laine,
You may be able to use *ONLY, *LAST or *ANY, depending on your circumstances...

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Laine, Rogers
Sent: Wednesday, January 30, 2013 8:25 AM
To: 'midrange-l@xxxxxxxxxxxx'
Subject: Sending Reports to Mainframe

Hello,

I would like to run some jobs that product reports that go the outq QPRINT.

After the jobs complete I would like to copy the reports from the outq to a PF file to FTP file to the mainframe system.(CPYSPLF)

So here are my questions....

If I use the CPYSPLF command below it is unable to locate file QPQUPRFIL as shown in the CPYSPLF below?

I know it will work if I add the Job name, User, and specify SPLNBR, but how do I determine the SPLNBR to pass to the CPYSPLF command?


CPYSPLF FILE(QPQUPRFIL) TOFILE(SYST012/PSDAILYRPT) SPLNBR(*LAST) TOMBR(AACL28DS)



Device or Total Cur
File User Queue User Data Sts Pages Page Copy Nbr Job User Number


QPQUPRFIL SYST012 QPRINT AADSTPASS RDY 2 1 2 AADSTPASS SYST012 983882






************************************************
This E-Mail transmission (and/or the documents accompanying it) may contain information belonging to the sender which is confidential, privileged and/or exempt from disclosure under applicable law. The information is intended only for the use of the individual(s) or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this E-Mail transmission in error, please immediately notify us by return E-Mail or telephone to arrange for return of its contents including any documents.
--
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.



--
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.

************************************************
This E-Mail transmission (and/or the documents accompanying it) may contain information belonging to the sender which is confidential, privileged and/or exempt from disclosure under applicable law. The information is intended only for the use of the individual(s) or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this E-Mail transmission in error, please immediately notify us by return E-Mail or telephone to arrange for return of its contents including any documents.

--
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.