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
 

 

Copying a data from Spool to a dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
hedonist

New User


Joined: 08 Jun 2005
Posts: 3

PostPosted: Wed Jun 08, 2005 12:51 pm    Post subject: Copying a data from Spool to a dataset
Reply with quote

Hi

Can anyone help me :

I am submitting a job and creating a DS..but that is empty
all the records I am able to see in Spool

How to copy the spool data into a DS ?
Is there any utility in JCL by which I can copy spool to a DS
Back to top
View user's profile Send private message

Deepa.m
Warnings : 1

New User


Joined: 28 Apr 2005
Posts: 99

PostPosted: Wed Jun 08, 2005 2:19 pm    Post subject:
Reply with quote

you can copy the spool records by typing XD and then give the DS name where you want the print output.

Open your Job in the spool
type XD in SYSOUT(where u have records to copy) and enter

eg:
JESMSGLG JES2
JESJCL JES2
JESYSMSG JES2
C1MSGS1 NDVRBAT
C1MSGS2 NDVRBAT
CWPERRM CBLPOSTP
CWPPRTO CBLPOSTP
XD SYSOUT CBLPOSTP


and then in the screen give the details

Data set name ===> <DS name>
Member to use ===>
Disposition ===> (OLD, NEW, SHR, MOD)

it gets copied to the DS..you have to close after printing.
[/img]
Back to top
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Wed Jun 08, 2005 2:56 pm    Post subject:
Reply with quote

hi,
check this link
http://www.ibmmainframes.com/viewtopic.php?t=2711&highlight=xdc
Back to top
View user's profile Send private message
shailendra

New User


Joined: 08 Jun 2005
Posts: 10
Location: Pune

PostPosted: Wed Jun 08, 2005 3:18 pm    Post subject: Re: Copying a data from Spool to a dataset
Reply with quote

Hi,
You can copy a sysout of the job you submitted by typing XDC against it. After pressing enter the new screen will pop up, there you need to write a dataset name. It will copy the contents into that dataset.

Let me know if it helps you.

shailendra
Back to top
View user's profile Send private message
hedonist

New User


Joined: 08 Jun 2005
Posts: 3

PostPosted: Wed Jun 08, 2005 3:43 pm    Post subject: Re: Copying a data from Spool to a dataset
Reply with quote

with XDC i will be able to copy the whole spool to a DS which I have already done

But I want only the records to be copied to a DS thru a JCL utility
Back to top
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Wed Jun 08, 2005 3:46 pm    Post subject:
Reply with quote

check the link i have given there you will find some other details aprt from XDC...it was discussed there.
Back to top
View user's profile Send private message
sudheer648

New User


Joined: 23 May 2005
Posts: 97
Location: Chennai

PostPosted: Wed Jun 08, 2005 3:48 pm    Post subject: Re: Copying a data from Spool to a dataset
Reply with quote

Hi hedonist,

Type Letter 'U' before the Sysout of the Job in SPOOL and gives you Panel asking you a dataset name a dump of the entire Sysout is taken into the dataset.

This is what the Log after testing of the pertivebrated jobs. 36_8_12.gif

Hope it helps you.

Cheers,
Sudheer
Back to top
View user's profile Send private message
David P

Active User


Joined: 11 Apr 2005
Posts: 106
Location: Cincinnati Ohio

PostPosted: Wed Jun 08, 2005 4:14 pm    Post subject:
Reply with quote

Hi hedonist,

Try this:
open the ddname of your job with option SE (edit mode)
then select the records you want to select by normal
copy block command cc - from and cc-to
then on the command line type CREATE and then press enter.

At this point the system will ask for the name of the data set along with the other properties, mention them as per your need.

Hope this should work for you.

regards,
David.
Back to top
View user's profile Send private message
vimalpvk

New User


Joined: 02 Jun 2005
Posts: 1

PostPosted: Wed Jun 08, 2005 4:56 pm    Post subject:
Reply with quote

Hi,

Go to spool and type XDC against it. After pressing enter the new screen will pop up, there you need to mention the data set name which you need to copy. It will copy the contents into that dataset. then you can edit the dataset and delete unwanted stuff and keep what ever you want.

Let me know if it helps you.

Regards
Vimal
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 Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am


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