Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Changing SPOOL data from one jobname to other job name

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Changing SPOOL data from one jobname to other job name
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: 2360
Location: Israel

PostPosted: Tue Mar 13, 2007 5:00 pm    Post subject:
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    Post subject:
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: 2360
Location: Israel

PostPosted: Tue Mar 13, 2007 5:04 pm    Post subject:
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

Site Director


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

PostPosted: Tue Mar 13, 2007 8:31 pm    Post subject:
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    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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us