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

Comparing 2 files


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

New User


Joined: 12 Oct 2010
Posts: 13
Location: Pune

PostPosted: Wed Oct 13, 2010 2:01 pm
Reply with quote

I want to list output of 2 compared file in PS file , bur I got JCL error "5 IEFC624I INCORRECT USE OF PERIOD IN THE SYSOUT FIELD"
if I use outdd dd sysout=* then output is getting written in spool , but how I can write output in file.please look below jcl.

Code:
000001 //SUPERCS JOB ('A123',NAREN),NOTIFY=&SYSUID                   
000002 //SUPERC  EXEC PGM=ISRSUPC,                                 
000003 //            PARM=(DELTAL,LINECMP,                         
000004 //            '',                                           
000005 //            '')                                           
000006 //NEWDD  DD DSN=NAREN.TESTING.JCL(COPYPS),         
000007 //          DISP=SHR                                         
000008 //OLDDD  DD DSN=NAREN.TESTING.JCL(COPYPST),                 
000009 //          DISP=SHR                                         
000010 //OUTDD  DD SYSOUT=DXY7B.NAREN.TEST.YTH                     
000011 //SYSIN DD *                                                 
000012 LSTCOLM 1:80                                                 
000013 CMPCOLM 1:80                                                 
000014 /*                                                           
000015 //


Edited: Please use BBcode when You post some code/error, that's rather readable, Thanks... Anuj
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Oct 13, 2010 2:52 pm
Reply with quote

what about looking Yourself at the syntax and parameters of the DD jcl statement icon_question.gif icon_evil.gif

the link to the jcl manuals is at the top of the page or

z/OS V1R6.0-V1R10.0 MVS JCL User's Guide
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B540/CCONTENTS?SHELF=IEA2BK91&DN=SA22-7598-04&DT=20040712160458

z/OS V1R10.0 MVS JCL Reference
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B680/CCONTENTS?SHELF=IEA2BK91&DN=SA22-7597-12&DT=20080604022956

the error is so simple that You should not have any issues finding out by Yourself

also the topic how to route a <sysout> to a plain PS dataset has been discussed quite a few times around here

edited to add the link to the ISPF manuals

here You will find all You might want to know about ISPF and friends
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/ISPZPM70
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Oct 13, 2010 2:53 pm
Reply with quote

why are you using the word SYSOUT in the dd statement.
If you want OUTDD to go to a dataset, use the appropriate DD parameters to allocate a dataset.

e.g. DSN=...,DISP...,SPACE...,DCB...
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Oct 13, 2010 3:10 pm
Reply with quote

Narendra -- Dick hit the nail on the head and I realized this when I edited your post to add BBcode.
Back to top
View user's profile Send private message
Narendra Bade

New User


Joined: 12 Oct 2010
Posts: 13
Location: Pune

PostPosted: Wed Oct 13, 2010 6:28 pm
Reply with quote

000001 //SUPERCS JOB ('A123',NAREN),NOTIFY=&SYSUID
000002 //SUPERC EXEC PGM=ISRSUPC,
000003 // PARM=(DELTAL,LINECMP,
000004 // '',
000005 // '')
000006 //NEWDD DD DSN=NAREN.TESTING.JCL(COPYPS),
000007 // DISP=SHR
000008 //OLDDD DD DSN=NAREN.TESTING.JCL(COPYPST),
000009 // DISP=SHR
000010 //OUTDD DD DSN=DXY7B.NAREN.TEST.YTH
000011 //SYSIN DD *
000012 LSTCOLM 1:80
000013 CMPCOLM 1:80
000014 /*
000015 //

AND IT WORKED!!!! icon_biggrin.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Oct 13, 2010 6:41 pm
Reply with quote

and all this without having read a single line in the manuals icon_cool.gif
Back to top
View user's profile Send private message
Narendra Bade

New User


Joined: 12 Oct 2010
Posts: 13
Location: Pune

PostPosted: Wed Oct 13, 2010 6:44 pm
Reply with quote

No , I read but i didn't get exact solution.
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
Search our Forums:

Back to Top