View Full Version : TechTip: Programmatically Changing All the Files in a Library
** This thread discusses the article: TechTip: Programmatically Changing All the Files in a Library (http://www.mcpressonline.com/index.php?option=com_content&view=article&id=3046) **
I have found that creating a custom PDM user option and running that option over a filtered list in PDM has been very effective for a majority of my needs. Remember you can override selected parms at the command line that applies for each execution. (i.e. CHGOWN in the PDM user option and NEWOWN(XYZ) on the command line) Downside: It runs online.
J.Droke
12-31-1969, 06:33 PM
** This thread discusses the article: TechTip: Programmatically Changing All the Files in a Library (http://www.mcpressonline.com/index.php?option=com_content&view=article&id=3046) **
A different approach which requires no programming would be to use PDM (WRKOBJPDM), subsetting it to the library and logical file in question. Then enter a 2 (CHGLF) and press F13 to copy this option to all options in the list. On the command line enter the parameter you want to change - ACCPTHSIZ(*MAX1TB) - and press ENTER.
dougd@softlanding.com
12-31-1969, 06:33 PM
** This thread discusses the article: TechTip: Programmatically Changing All the Files in a Library (http://www.mcpressonline.com/index.php?option=com_content&view=article&id=3046) **
Use WRKOBJPDM and the filters available there to narrow down your selection. Then create a user defind option that does the CHGLF. (your option could run interactively, or it could do it's own SBMJOB). Enter your option next to the filtered list and press F13 to repeat, then press enter.
MCWebsite.Staff
12-31-1969, 06:33 PM
** This thread discusses the article: TechTip: Programmatically Changing All the Files in a Library (http://www.mcpressonline.com/index.php?option=com_content&view=article&id=3046) **
** This thread discusses the Content article: TechTip: Programmatically Changing All the Files in a Library (http://www.mcpressonline.com/index.php?option=com_content&view=article&id=3046) **
0
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.