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
 

 

Comparing 2 files

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Comparing 2 files
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Wed Oct 13, 2010 2:52 pm    Post subject: Reply to: Comparing 2 files
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
http://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
http://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
http://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    Post subject:
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

Senior Member


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

PostPosted: Wed Oct 13, 2010 3:10 pm    Post subject:
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    Post subject: Comparing two files and write output in PS file
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Wed Oct 13, 2010 6:41 pm    Post subject: Reply to: Comparing 2 files
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    Post subject:
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    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 High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
No new posts Comparing Decimal and CHAR columns rakesh17684 DB2 7 Thu Oct 20, 2016 2:33 am
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm
No new posts Adding records from two files into on... shiitiizz SYNCSORT 4 Mon Sep 19, 2016 8:41 pm


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