Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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 & VSAM
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    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

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

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: 10211
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: 8593
Location: Back in jolly old England

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 Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
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: 8593
Location: Back in jolly old England

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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DUMP DATASETS VS TRACE DATASETS! lind sh CICS 4 Tue Dec 06, 2016 11:31 pm
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
No new posts How to change dataset attributes of m... ignich7 JCL & VSAM 3 Thu Jul 21, 2016 9:17 pm
No new posts Finding unreferenced datasets without... Alan Playford JCL & VSAM 5 Tue Jul 12, 2016 9:07 pm
No new posts BDW in VB datasets harisukumaran JCL & VSAM 5 Sat May 28, 2016 9:46 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us