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

Changing SPOOL data from one jobname to other job name


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

New User


Joined: 03 Feb 2006
Posts: 41
Location: Hyderabad

PostPosted: Tue Mar 13, 2007 4:34 pm
Reply with quote

Hi,

I submitted a batch job to delete rows from table and it got executed successfully. But by mistake I have used JOB NAME as my UserId. But later realised that it should be something else. My question is can I move the contents of spool from one id to other id?

Example:
My job card was:
//KCRXV35Q JOB (CHRB),'HRB ARCHIVE 2',
// MSGCLASS=Q,CLASS=0,REGION=8192K,NOTIFY=&SYSUID

My job card should have been:
//CHRU730P JOB (CHRB),'HRB ARCHIVE 2',
// MSGCLASS=Q,CLASS=0,REGION=8192K,NOTIFY=&SYSUID

Now the contents of job will be on KCRXV35Q in SPOOL. But I want them to be on CHRU730P. I cannot rerun this job as first run already deleted the contents from the tables. Is there any way that I can swap the contents from one jOB NAME TO OTHER jObname?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Mar 13, 2007 5:00 pm
Reply with quote

No, you can. You can copy the content of the output datasets from the spool to regular datasets.

O.
Back to top
View user's profile Send private message
kalyanp_80

New User


Joined: 03 Feb 2006
Posts: 41
Location: Hyderabad

PostPosted: Tue Mar 13, 2007 5:03 pm
Reply with quote

I dont want to copy them to regular data sets. It should be in the SPOOL with other jobname I mentioned
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Mar 13, 2007 5:04 pm
Reply with quote

You can't copy from one output to another.

O.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Mar 13, 2007 8:31 pm
Reply with quote

Hello,

Re-run the job with the correct jobname, copy the data fro the spool to "real" datasets, or use it the way it is.

There is no "change job name after it is in the system" command. Wouldn't really make any sense. That would invalidate all of the accounting recorded as well as mess up transaction logs.
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 save SYSLOG as text data via P... All Other Mainframe Topics 2
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top