× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: CRTSRVPGM
  • From: "Stone, Brad V (TC)" <bvstone@xxxxxxxxxxxxxx>
  • Date: Wed, 11 Jul 2001 09:03:58 -0500

I assume you left the parameters for EXPORT, SRCFILE and SRCMBR as their defaults on the CRTSRVPGM command.  So, the system was looking for a member with the same name as your module, in QSRVSRC, of type BND that contains binder language.
 
Binder language is used to tell the system which subprocedures to export from the module.  This error is saying "Hey, look here bud!  I didn't find any binder language!"
 
Two options.
 
1.  Change EXPORT to *ALL (not recommended, but it will work if you PROMISE to go back and use binder language for your real applications.)  This says "Ignore any binder language and just export all subprocedures from the module."
 
2.  Read up on binder language, signatures, and what all goes on here.  It is confusing at first, but luckily it' s one of those things that "clicks" once you get there. 
 
Email me privatly for a copy of a powerpoint presentation I have on ILE that I use when I am teaching it.  :)  It may help with your road to ILE.
 
Brad
 
-----Original Message-----
From: Rex Capio [mailto:rex_capio@swimtrend.com]
Sent: Wednesday, July 11, 2001 8:02 AM
To: RPG400-L@midrange.com
Subject: CRTSRVPGM

Hello everybody,
 
I'm trying to create my first service program and am getting this compilation message:
 
     H NoMain                           
***ERROR Syntax not valid.              
***ERROR No 'current' export block      
 
Does anybody have an idea? 
 
Rex
 
 

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.