MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Update PDS in Batch and Print Lost/Damaged Report

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
arvibala
Beginner


Joined: 12 Feb 2008
Posts: 142
Topics: 67

PostPosted: Wed Feb 22, 2012 7:05 am    Post subject: Update PDS in Batch and Print Lost/Damaged Report Reply with quote

1.
XYZ Financial Corporation has several applications to maintain their customer and employee data. They have thousands of Batch jobs and COBOL programs. On a particular audit, they were asked to change a program name from PGM1 to PGMS. On analysis the developer found that the program PGM1 is been used in more than 1000 batch jobs. Please suggest a simple solution for the developer to change the program name in all the impacted jobs

2.
The
_________________
Arvind
"You can make a difference with your smile. Have that with you always"
Back to top
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Wed Feb 22, 2012 11:57 am    Post subject: Reply with quote

arvibala,

1a. The audit never found if there any DB2/IMS programs which require the plan/psb names tied to the program name. What do you with the plan/psb names? Do you bind and generate new plans and PSB's?

1b. What would you do if PGM1 is Dynamic called program from another program?
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
arvibala
Beginner


Joined: 12 Feb 2008
Posts: 142
Topics: 67

PostPosted: Thu Feb 23, 2012 4:39 am    Post subject: Reply with quote

Kolusu,
Its only simple COBOL program and PGM1 is not called dynamically. Its used in 1000 Jcls and need to be changed, wats the best and simple solution
_________________
Arvind
"You can make a difference with your smile. Have that with you always"
Back to top
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu Feb 23, 2012 12:46 pm    Post subject: Reply with quote

Arvibala,

1.

Solution a : http://www.mvsforums.com/helpboards/viewtopic.php?t=5397

Solution b : http://www.mvsforums.com/helpboards/viewtopic.php?t=1286&highlight=libmem

2. If 180 days can be taken as 6 months then the following DFSORT JCL will give the desired results. If you want to strictly implement 6 months rule, then you use SUBMONS function(I will leave it to you)

Code:

//STEP0100 EXEC PGM=SORT                                               
//SYSOUT   DD SYSOUT=*                                                 
//SORTIN   DD DSN=Your input file,DISP=SHR                                         
//SORTOUT  DD SYSOUT=*                                                 
//SYSIN    DD *                                                         
  INCLUDE COND=(22,4,SS,EQ,C'LOST,TORN',AND,76,10,CH,GE,DATE1(-)-180)   
  INREC IFTHEN=(WHEN=INIT,BUILD=(1,21,56,20,X'00001C'))                 

  SORT FIELDS=(1,13,CH,A)                                               
  SUM FIELDS=(14,8,42,3),FORMAT=PD                                     

  OUTREC IFTHEN=(WHEN=INIT,OVERLAY=(45:C'YES')),                       
  IFTHEN=(WHEN=(42,3,PD,GT,2,OR,14,8,PD,GT,100000),                     
  OVERLAY=(45:C'NO '))                                                 

  OUTFIL REMOVECC,                                                     
  BUILD=(3:1,13,22:42,3,PD,M11,LENGTH=6,                               
         30:14,8,PD,EDIT=(+TTTTTTTTTTTTT.TT),49:22,20,71:45,3,80:X),   
  HEADER2=(20:'"SKY IS THE LIMIT" PUBLIC LIBRARY LOST/DAMAGED REPORT', 
           /,/,3:'LIBRARY-CARD-NBR',                                   
           22:'#BOOKS ',32:'TOTAL-LOSS',49:'USER',71:'CAN LEND?',/,     
           3:16C'-',22:6C'-',30:17C'-',49:20C'-',71:9C'-'),
  TRAILER1=(/,/,/,'TOTAL NUMBER OF RECORDS : ',COUNT)               
                                                                       
//*

_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
arvibala
Beginner


Joined: 12 Feb 2008
Posts: 142
Topics: 67

PostPosted: Tue Feb 28, 2012 2:11 am    Post subject: Reply with quote

Thank You and logic for 2 is awesome ... I have long way to go ....
_________________
Arvind
"You can make a difference with your smile. Have that with you always"
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group