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
 

 

SAS program for comparing files in JCL

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
koti_aug26

New User


Joined: 19 Dec 2009
Posts: 2
Location: chennai

PostPosted: Sat Dec 19, 2009 12:08 pm    Post subject: SAS program for comparing files in JCL
Reply with quote

Could anybody please help me to get a SAS program for the following requirement

The requirement is to compare two files and generate a report. Both the files have same LRECL.

//STEP2 EXEC SASPROD
//SARFILE DD DSN=INFILE1,DISP=SHR
//SARFILE1 DD DSN=INFILE2,DISP=SHR
//RESULT DD DSN=RESFILE,DISP=SHR
//SYSIN DD *
DATA SARPRINT;
INFILE SARFILE;
INFILE SARFILE1;
PROC COMPARE BASE=SARFILE COMP=SARFILE1 OUT=RESULT OUTNOEQUAL;RUN;
/*
//*

When we us e the above code. we got some errors like.

ERROR: File WORK.SARFILE.DATA does not exist.
ERROR: File WORK.SARFILE1.DATA does not exist.

Please help on this. Kindly let me know if any clarification needed.
_________________
Thanks,
Koteswararao
Back to top
View user's profile Send private message

PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2435
Location: Netherlands, Amstelveen

PostPosted: Sat Dec 19, 2009 2:34 pm    Post subject:
Reply with quote

SAS PROC COMPARE only works with SAS datasets.
Back to top
View user's profile Send private message
koti_aug26

New User


Joined: 19 Dec 2009
Posts: 2
Location: chennai

PostPosted: Sat Dec 19, 2009 2:37 pm    Post subject:
Reply with quote

The 2 input files were SAS datasets only.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Sat Dec 19, 2009 2:49 pm    Post subject:
Reply with quote

Errrrrrrm, shouldn't you actually read the files into WORK before trying to compare them from the WORK area ?
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2435
Location: Netherlands, Amstelveen

PostPosted: Sat Dec 19, 2009 2:51 pm    Post subject:
Reply with quote

No they are not. They are external files to SAS.
I advice you to read SAS Language Reference Dictionary
to obtain some knowledge about SAS.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Dec 19, 2009 4:00 pm    Post subject: Reply to: SAS program for comparing files in JCL
Reply with quote

Hello,

I advise you to not post the same question in multiple forums.

This topic is locked and with your level of experience, you should post only in our other forum.

d
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am


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