IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

JCL to identify the Migrated Datasets


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sannar

New User


Joined: 12 Feb 2008
Posts: 4
Location: Pondy

PostPosted: Sat May 17, 2008 12:30 pm
Reply with quote

Hi,

I want to know the list of all datasets that got migrated in my mainframe LPAR.
If so let me the syntax please. Thanks!
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat May 17, 2008 12:35 pm
Reply with quote

SYS1.SAMPLIB - IGGCSIRX is a good place to start
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Sat May 17, 2008 12:36 pm
Reply with quote

ISMF dialogs have all the filtering options You need for such a task,
after having built the list You can print it choosing the appropriate columns
Back to top
View user's profile Send private message
sannar

New User


Joined: 12 Feb 2008
Posts: 4
Location: Pondy

PostPosted: Sat May 17, 2008 4:11 pm
Reply with quote

Hi enrico sorichetti,
I was in the ISMF screen. Help me how to proceed from next step till end.

Hi expat,
SYS1.SAMPLIB(IGGCSIRX) i was getting into the REXX.
Whether the REXX program will answer my question.If so how....? icon_evil.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat May 17, 2008 5:19 pm
Reply with quote

The REXX is a simple example of the CSI utility, and as supplied will tell you the dataset name and the volume it resides on.

It would be fairly simple to amend the code to include only thos with a volser of MIGRAT
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon May 19, 2008 1:16 pm
Reply with quote

Hi,

Try this JCL:
Code:

//STEP10  EXEC PGM=IKJEFT1A                       
//SYSPROC   DD DSN=SYS1.SAMPLIB,DISP=SHR           
//SYSTSPRT  DD DSN=HLQ.LIST.ALL,                   
//             DISP=(NEW,CATLG,CATLG),             
//             UNIT=DISK,SPACE=(CYL,(50,50),RLSE),
//             DCB=(RECFM=FB,LRECL=133,BLKSIZE=0) 
//SYSTSIN   DD *                                   
%IGGCSIRX                                         
HLQ.**                                             
/*                                                 

This is just an extension of expat's earlier reply..
Quote:
SYS1.SAMPLIB - IGGCSIRX is a good place to start

BTW, IDCAMS LISTCAT can also do this.Something like
Code:
//SYSIN DD *           
  LISTCAT -           
     LEVEL(HLQ) ALL
/*                     
& then follow this
Quote:
It would be fairly simple to amend the code to include only thos with a volser of MIGRAT
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue May 20, 2008 12:45 pm
Reply with quote

If you copy the REXX and amend the code

Code:

SAY COPIES(' ',8) DTYPE DNAME VOLSER.1 VOLSER.2 VOLSER.3


BECOMES

Code:

IF VOLSER.1 = 'MIGRAT' THEN
   SAY COPIES(' ',8) DTYPE DNAME VOLSER.1 VOLSER.2 VOLSER.3


You will have only migrated datasets
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to identify the transaction categ... IMS DB/DC 3
No new posts Identify Program Insert DB2 7
No new posts Merging 2 datasets into one DFSORT/ICETOOL 1
No new posts How Can I Recall a Migrated Data Set ... PL/I & Assembler 3
No new posts PL/I, VB Datasets and the RDW PL/I & Assembler 4
Search our Forums:

Back to Top