MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Error while Link Editing a SAS/C module

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
mrinalsolanki
Beginner


Joined: 02 May 2006
Posts: 56
Topics: 16

PostPosted: Tue May 02, 2006 7:45 am    Post subject: Error while Link Editing a SAS/C module Reply with quote

Hi,

I have compiled successfully the following SAS/C program but it gives an error while link edit. I beleive that I have included all libraries. Let me know if I am missing anything.

C Code:

Code:
 #include<string>                                   
 #include<stdio>                                     
 #include<stdlib>                                   
 main()                                               
 {                                                     
      char str(|80|),*p;                               
      FILE *fopen(), *fp;                             
      fp = fopen( "DD:TEST", "r");                     
      p=(char *)fp;                                   
      printf("Enter the version no.");                 
      scanf("%s",&str);                               
      if(strncmp(str,p,10)==0)                         
      {                                               
          printf("Version no %s is  correct",str);     
      }                                               
      else                                             
      {                                               
         printf("Version no %s is not correct",str);   
      }                                               
      fclose(fp);                                     
 }                                                     


Link Edit error

Code:
SAS Institute 370 C Linkage Editor Preprocessor Release 5.50C                 
Copyright(c) 1992 by SAS Institute Inc. All Rights Reserved.                   
 INCLUDE OBJECT(FILECMP)                                                       
 ENTRY   MAIN                                                                 
LSCL700 Note: ENTRY control statement not processed by CLINK, passed on to link
 NAME    FILECMP(R)                                                           
LSCL102 Warning: Can't open file during autocall: ddn:SYSLIB(DFHEI1)           
LSCL102 Warning: Can't open file during autocall: ddn:SYSLIB(DFHEAI)           
LSCL102 Warning: Can't open file during autocall: ddn:SYSLIB(DFHEAI0)         
                                                                               
 END CLINK PREPROCESSING (rc=4)                                               
z/OS V1 R3 BINDER     08:29:02 TUESDAY MAY  2, 2006                           
BATCH EMULATOR  JOB(NIIT53L ) STEP(FILECMP ) PGM= IEWL                         
IEW2278I B352 INVOCATION PARAMETERS - RENT,LIST,XREF,MAP                       
                                                                               
IEW2322I 1220  1    ENTRY   MAIN                                               
IEW2322I 1220  2    NAME    FILECMP(R)                                         
IEW2456E 9207 SYMBOL DFHEI1 UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL DFHEAI UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL DFHEAI0 UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE


Thanks,
Mrinal.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue May 02, 2006 8:31 am    Post subject: Reply with quote

mrinalsolanki,

Make sure that you concatenate the following datasets to your SYSLIB dd of the link edit step.

Code:


//SYSLIB   DD DSN=HLQ.SCEELKED,   
//            DISP=SHR             
//         DD DSN=HLQ.SCSQCOBC,   
//            DISP=SHR             

Most shops have HLQ as SYS1. So check with your shop naming standards and then add them to syslib concatenation


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mrinalsolanki
Beginner


Joined: 02 May 2006
Posts: 56
Topics: 16

PostPosted: Wed May 03, 2006 12:45 am    Post subject: Reply with quote

hi kolusu,

I got the solution for my problem,Basically i am linking with cics environment that's why i was not been able to linking.

Thanks

Mrinal
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group