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

HOw to copy Spool output into Datasets?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vijayalayancse

New User


Joined: 29 Aug 2005
Posts: 25
Location: Chennai

PostPosted: Thu May 18, 2006 6:05 pm
Reply with quote

How to copy the spool output into datasets?
Back to top
View user's profile Send private message
hariavinash

New User


Joined: 04 Jan 2006
Posts: 64

PostPosted: Thu May 18, 2006 6:16 pm
Reply with quote

u mean SDSF output or SAR spooled outputs?
Back to top
View user's profile Send private message
vijayamadhuri

Active User


Joined: 06 Apr 2005
Posts: 180

PostPosted: Thu May 18, 2006 6:37 pm
Reply with quote

Hi suppose u want to copy the sysout

just put the command xdc next to it
it will ask u the name of the dataset into which it should be copied
Back to top
View user's profile Send private message
Vijaya Baskar

New User


Joined: 18 May 2006
Posts: 8
Location: Chennai

PostPosted: Fri May 26, 2006 1:28 pm
Reply with quote

Hi,

Just to add, the Dataset into which the Spool Ouput is copied should have LRECL as 133.

Hope I am right. Please correct me if I am wrong.
Back to top
View user's profile Send private message
shri_shant

New User


Joined: 26 Oct 2005
Posts: 16

PostPosted: Fri May 26, 2006 2:48 pm
Reply with quote

HI
if you want to copy the spool output in data set use sysdump dd dsn= name of data set I think it will work


correct me if I am wrong


thanks
Shrishant
Back to top
View user's profile Send private message
gskulkarni

New User


Joined: 01 Mar 2006
Posts: 70

PostPosted: Fri May 26, 2006 3:04 pm
Reply with quote

Vijaya Baskar's solution is the best one considering that you have a job already in the spool and you just want teh result to be copied to a Dataset.

Do XDC in fron tof teh spool and give the dataset name.
Back to top
View user's profile Send private message
rajandhla

Active User


Joined: 18 Oct 2005
Posts: 182
Location: Luton UK

PostPosted: Fri May 26, 2006 3:06 pm
Reply with quote

Yes, Iam with vijay and kulkarni............
Back to top
View user's profile Send private message
sihanature
Warnings : 1

New User


Joined: 01 Sep 2005
Posts: 33

PostPosted: Fri May 26, 2006 6:00 pm
Reply with quote

Yeah..

XDC is good option to produce spool outputs to the DSN.

Suggest Is ther any way?

Regards,
Back to top
View user's profile Send private message
saithvis2

New User


Joined: 23 Dec 2005
Posts: 61
Location: Providence , US

PostPosted: Wed Jul 19, 2006 3:52 pm
Reply with quote

Hi All,

One more way is to open the sysout in SE mode and write create at command line and then c99999 at the first line number and then press enter , it will ask for the new file attirbutes . icon_biggrin.gif

Code:

SDSF EDIT    XVZSFIND (JOB00920) OUTDD                     Columns 00001 00072
Command ===> create                                           Scroll ===> CSR 
****** ***************************** Top of Data ******************************
C99999 1  ISRSUPC   -   MVS/PDF FILE/LINE/WORD/BYTE/SFOR COMPARE UTILITY- ISPF
000002   LINE-#  SOURCE SECTION                    SRCH DSN: xvzstso.temp.temp1
000003                                                                         
000004                                                                         
000005   abcd9102                    --------- STRING(S) FOUND ----------------
000006                                                                         
000007        9  ?00  CEE   0    ?00 q?     ?            ??}   0 q?0<         
000008                                                                         
000009   abcd9110                    --------- STRING(S) FOUND ----------------
000010                                                                         
000011        1   ?     0IUIP9110       ?IGZCBSO    ?   ?CEESTART       ^CEEBET
000012        9  ?00  CEE   ?    ?00 q?     ?            ??}   0 q?0<         
000013                                                                         
000014 1  ISRSUPC   -   MVS/PDF FILE/LINE/WORD/BYTE/SFOR COMPARE UTILITY- ISPF
000015       SEARCH-FOR SUMMARY SECTION            SRCH DSN: xvzstso.temp



And then press enter , and give the file name

Code:
                              Edit/View - Create                   
Command ===>                                                       
                                                                   
"Current" Data Set:                                               
                                                                   
To ISPF Library:                                                   
   Project . . .                                                   
   Group . . . .                                                   
   Type  . . . .                                                   
   Member  . . .                                                   
                                                                   
To Other Partitioned Data Set Member:                             
   Data Set Name . . . 'xvzstso.temp'                             
   Volume Serial . . .           (If not cataloged)               
                                                                   
Data Set Password  . .           (If password protected)           
                                                                   
Enter "/" to select option                                         
   Specify pack option for "CREATE" Data Set                       


and then enter the attributes ,
Code:

                            Allocate New Data Set                           
Command ===>                                                               
                                                                   More:   
Data Set Name  . . . : XVZSTSO.TEMP                                         
                                                                           
Management class . . .                (Blank for default management class) 
Storage class  . . . .                (Blank for default storage class)     
 Volume serial . . . .                (Blank for system default volume) ** 
 Device type . . . . .                (Generic unit or device address) **   
Data class . . . . . .                (Blank for default data class)       
 Space units . . . . . CYLINDER       (BLKS, TRKS, CYLS, KB, MB, BYTES     
                                       or RECORDS)                         
 Average record unit                  (M, K, or U)                         
 Primary quantity  . . 1              (In above units)                     
 Secondary quantity    1              (In above units)                     
 Directory blocks  . . 0              (Zero for sequential data set) *     
 Record format . . . . FB                                                   
 Record length . . . . 20                                                   
 Block size  . . . . .                                                     
 Data set name type  :                (LIBRARY, HFS, PDS, or blank)  *     
                                      (YY/MM/DD, YYYY/MM/DD                 



Regards
Vishal
Back to top
View user's profile Send private message
sureshchoudey

New User


Joined: 16 Sep 2005
Posts: 12

PostPosted: Wed Jul 19, 2006 6:15 pm
Reply with quote




I think best option type infornt of member xdc, then after asking the data set name and member name. where u want store the spool data and store it
Back to top
View user's profile Send private message
cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Wed Jul 19, 2006 6:29 pm
Reply with quote

One more option. You can preallocate a dataset. Then go into SDSF and select the listing or part of the listing you want to place in the dataset.

On the command line, enter each command one a time:
PRINT ODSN 'HLQ.DATA.SET'
PRINT
PRINT CLOSE

If you want to place only part of the listing into the dataset, the 2nd PRINT may be coded:
PRINT 40 180 (to capture only lines 40 through 180)
Back to top
View user's profile Send private message
punith007
Warnings : 1

New User


Joined: 16 May 2006
Posts: 11
Location: INDIA

PostPosted: Wed Jul 19, 2006 7:28 pm
Reply with quote

I think this is what the author is looking for.............


//SYSOUT DD SYSOUT=give the output data set name

if it is a new one also give disp=new,dcb=...parameteres as well
Back to top
View user's profile Send private message
ratheeshar

New User


Joined: 19 May 2006
Posts: 1

PostPosted: Thu Jul 20, 2006 10:15 am
Reply with quote

i ve one problem reg. this. all these above solution s are applicable only to SDSF. how can i do these in "$avers" for a job which has already ran.
can i get SYSOUT from "$avers" to a dataset ?
Back to top
View user's profile Send private message
kregen

New User


Joined: 16 Mar 2006
Posts: 21

PostPosted: Thu Jul 20, 2006 3:10 pm
Reply with quote

I use this Step,

//*---------------------------------------------------------------
//* WRITING JOB OUTPUT TO DISK
//*---------------------------------------------------------------
//SAVEOUT EXEC PGM=IKJEFT1B
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
OUTPUT DV20HEY# PRINT(DS123456)

You find the JOBOUTPUT: DV20HEY.DS123456.OUTPUT

I hope it`s helps
kai
Back to top
View user's profile Send private message
Ravi Rao

New User


Joined: 28 Feb 2006
Posts: 3

PostPosted: Sun Jul 23, 2006 9:56 pm
Reply with quote

If you are talking of copying IOF outputs to datasets then this can be achieved by selecting the job in IOF and then type SD at command line and hit enter. This should throw up a new panel where you can give the name of a dataset and allocate tracks to it. After this hit enter and this takes you back to the selected job. Here at command line you can type SNAP and hit enter and the all the data from the job will be captured in the dataset.
Back to top
View user's profile Send private message
likki

New User


Joined: 04 Jul 2006
Posts: 5

PostPosted: Mon Jul 24, 2006 3:04 pm
Reply with quote

gud solutions by all.........xdc is da best way but..........dont repeat da same solution again and again by diff users...........dont repeat da solution,as wat i did............
likki
Back to top
View user's profile Send private message
Asif Iqbal

New User


Joined: 17 May 2005
Posts: 27
Location: Pune, India.

PostPosted: Mon Jul 24, 2006 3:36 pm
Reply with quote

vijayamadhuri wrote:
Hi suppose u want to copy the sysout

just put the command xdc next to it
it will ask u the name of the dataset into which it should be copied


I tried to implement what vijayamadhuri suggested but its not working in my shop.

Could you please clarify it with some screen shot, I think I am not putting the XDC at the accurate place.


Shall be thankful for your reply

Regards,
Asif
Back to top
View user's profile Send private message
Nithinra

New User


Joined: 03 Jul 2006
Posts: 11

PostPosted: Mon Jul 24, 2006 3:45 pm
Reply with quote

Hi,
XDC should work.

Regards,
Nithin
Back to top
View user's profile Send private message
avelayudhan

New User


Joined: 30 Nov 2005
Posts: 26

PostPosted: Mon Jul 24, 2006 11:03 pm
Reply with quote

I think you can type 'XD' at the SDSF panel as a line command on the sysout that you want a print of. This will open a a new panel where you can give DD and dispostion of the file where you want to write the output to.??
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 Copy only TEXT or String from a record SYNCSORT 4
No new posts REXX/CMS How to place command console... CLIST & REXX 4
No new posts Reroute print output via REXX/SDSF TSO/ISPF 6
No new posts JES datasets IO Error ABENDS & Debugging 3
No new posts Concatenate 2 input datasets and give... JCL & VSAM 2
Search our Forums:

Back to Top