DLTSPLF dilemma
Last Post 04 Jan 2013 02:06 PM by Brian Rusch. 1 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
gregwga50
Advanced Member
Advanced Member
Posts:472

--
04 Jan 2013 12:21 PM
We run a job on the system that creates multiple spool files with the same name. At the end of the job I want to delete all the spool files with the same name except the first one. Can you think of a way to do this.
Brian Rusch
Advanced Member
Advanced Member
Posts:554

--
04 Jan 2013 02:06 PM
Override the print file after the first one to put a value into the user data of the spool file and then delete all spool files with that user data.

OVRPRTF FILE(printfile) USRDTA('NOTFIRST') after first one is created

DLTSPLF FILE(*SELECT) SELECT(*CURRENT *ALL *ALL NOTFIRST)
You are not authorized to post a reply.

Acceptable Use Policy