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 copying data without knowing location arunsoods DFSORT/ICETOOL 3 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 16 Thu Jul 13, 2017 2:11 pm
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am


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