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
 

 

HOw to copy spool output into datasets?

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: HOw to copy spool output into datasets?
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    Post subject:
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    Post subject: Re: HOw to copy spool output into datasets?
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject: Re: HOw to copy spool output into datasets?
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    Post subject: Re: HOw to copy spool output into datasets?
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    Post subject: Re: HOw to copy spool output into datasets?
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    Post subject: Re: HOw to copy spool output into datasets?
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    Post subject:
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: 18

PostPosted: Thu Jul 20, 2006 3:10 pm    Post subject:
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    Post subject: Re: HOw to copy spool output into datasets?
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    Post subject:
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    Post subject: Re: HOw to copy spool output into datasets?
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    Post subject: Re: HOw to copy spool output into datasets?
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    Post subject:
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   This topic is locked: you cannot edit posts or make replies.    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 syncsort: copy lines after the keyword shreya19 SYNCSORT 1 Fri Dec 02, 2016 9:47 am
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am
No new posts output data in CSV Format janmejay COBOL Programming 8 Sat Oct 15, 2016 2:20 pm
This topic is locked: you cannot edit posts or make replies. output data in CSV Format janmejay DFSORT/ICETOOL 3 Sat Oct 15, 2016 2:16 pm


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