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
 

 

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 Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
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 SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm


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