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



Hi Mvh

At program entry, before opening the printer file change the USRDTA
using OVRPRTF command by calling QCMDEXC from COBOL program.

And after every close to printer file (break), Delete the over ride on
the printer file and issue a new override PRTF with the new user data
value and open the file.

Logic is like this:-
OVRPRTF USRDTA(??????)
Open printer file
Process
Close PRTF
Delete Over ride
Over ride PRTF USRDTA(XXXXX)
Open prtf
Process
CLOSE PRTF
Delete over ride.

Thanks & Regards
Shiva
Project Engineer
Wipro Technologies (Finance & Insurance)
Electronics City, Bangalore, India
Phone - 8520408/8520416 x - 4364.

-----Original Message-----
From: cobol400-l-bounces@xxxxxxxxxxxx
[mailto:cobol400-l-bounces@xxxxxxxxxxxx] On Behalf Of
geir.kildal@xxxxxxxxxxxxxx
Sent: Tuesday, February 18, 2003 4:45 PM
To: cobol400-l@xxxxxxxxxxxx
Subject: Changing a PRTF's USRDTA while running the print pgm?

Hello all.

I have a printpgm that prints to a PRTF.  At some breaks, I close the 
printfile and open it again to achive a split into several spoolfiles. 
This works OK, but I'd like to put a spesific label/name on each 
spoolfile( it will then be easier to recognize for the packing staff),
and 
I wonder, is there a way to change the USRDTA on the printfile each time
I 
open it in my pgm? 

Or do you have better ideas? 

Mvh.

Geir 

 
_______________________________________________
This is the COBOL Programming on the iSeries/AS400 (COBOL400-L) mailing
list
To post a message email: COBOL400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/cobol400-l
or email: COBOL400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/cobol400-l.

**************************Disclaimer**************************************************
    
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to 
which it is 
addressed. You are notified that any use, copying or dissemination of the 
information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.

****************************************************************************************




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.