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: 10274
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 REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts Could we identify the called modules ... elixir1986 COBOL Programming 5 Fri Jul 14, 2017 1:53 am
No new posts Identify top 30 big tables or indexes... ashek15 DB2 0 Fri Jun 16, 2017 10:01 am
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm


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