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

HMIGRATE COMMAND returns non zero RC


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nirmalgarga

New User


Joined: 07 Jul 2006
Posts: 1

PostPosted: Fri Jul 07, 2006 11:32 am
Reply with quote

When I tried to migrate a Physical Sequential Dataset using the following
command in REXX Program:

"HMIG <PS DATASET NAME> EXTENDRC ML2 WAIT"

I get Return Code RC(2949212). Could anyone help me in finding out the possible reason for this problem?
Back to top
View user's profile Send private message
cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Fri Jul 07, 2006 6:25 pm
Reply with quote

The HELP panel for HMIGRATE command (TSO HELP HMIGRATE) indicates:

Code:

 EXTENDRC - specifies that DFSMShsm will return a return code         
   and reason code to your CLIST or batch TSO job                     
   (job that executes the program IKJEFT01).                           
   The &LASTCC control variable (in the case of a CLIST)               
   or register 15 (in the case of a batch TSO job)                     
   will contain the return code in the high-order two bytes           
   and the reason code in the low-order two bytes.                     
   Notes:                                                             
   This option is only appropriate when the command is issued         
   in a CLIST or TSO batch job, and when the WAIT option is           
   also specified.                                                     


If you are not executing the HMIGRATE command in a CLIST or TSO batch job, EXTENDRC may not be necessary and may result in the odd return code.

Is the HMIG command failing and not migrating the requested dataset?
Back to top
View user's profile Send private message
chandrasekar_g

New User


Joined: 15 Jun 2005
Posts: 3

PostPosted: Fri Jul 07, 2006 9:22 pm
Reply with quote

Try giving HRECALL in the line command on the corresponding dataset.
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts REXX/CMS How to place command console... CLIST & REXX 4
No new posts Help needed in automation cics transa... CLIST & REXX 1
No new posts How to Login in to cics region and is... CICS 9
No new posts Passing containers on START command CICS 4
No new posts ICETOOL returns no records JCL & VSAM 1
Search our Forums:

Back to Top