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

Copying a data from Spool to a dataset


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

New User


Joined: 28 Apr 2005
Posts: 99

PostPosted: Wed Jun 08, 2005 2:19 pm
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
Reply with quote

hi,
check this link
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
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 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