Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
JCL to identify the Migrated Datasets

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
sannar

New User


Joined: 12 Feb 2008
Posts: 4
Location: Pondy

PostPosted: Sat May 17, 2008 12:30 pm    Post subject: JCL to identify the Migrated Datasets
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
References
PostPosted: Sat May 17, 2008 12:30 pm    Post subject: Re: JCL to identify the Migrated Datasets Reply with quote

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 2817
Location: Brussels once more ...

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

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

Global Moderator


Joined: 14 Mar 2007
Posts: 2538
Location: italy

PostPosted: Sat May 17, 2008 12:36 pm    Post subject: Reply to: JCL to identify the Migrated Datasets
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    Post subject:
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: 2817
Location: Brussels once more ...

PostPosted: Sat May 17, 2008 5:19 pm    Post subject:
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 D.

Senior Member


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

PostPosted: Mon May 19, 2008 1:16 pm    Post subject:
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: 2817
Location: Brussels once more ...

PostPosted: Tue May 20, 2008 12:45 pm    Post subject:
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1