- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: pro*c and UNIX problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2004 07:09 PM
08-24-2004 07:09 PM
pro*c and UNIX problem
EXEC SQL WHENEVER NOTFOUND goto nff;
EXEC SQL SELECT 'X' into :temp from CCHCONTROLBAT
WHERE SPID=:spid
and LOCATION=:location
and TERMTYPE=:termtype
and TERMID=to_number(:termid)
and BATCHNO=to_number(:batchno)
and BATCHTYPE=:batchtype
and OPERDATE=to_date(:operdate,'yyyymmdd');
olddata=0;
reject:
if(olddata==0)
fprintf(fp,"%s%s%s%s%s%s - duplicate batch\n",spid.arr,location.arr,termtype.arr,termid.arr,batchno.arr,batchtype.arr);
else
fprintf(fp,"%s%s%s%s%s%s - more than 12 months\n",spid.arr,location.arr,termtype.arr,termid.arr,batchno.arr,batchtype.arr);
fflush(fp);
goto nff1;
nff:
/* some code */
when i compiled i got error
"batregacrecycle.c", line 1742.1: 1506-006 (S) Label nff is undefined.
make: 1254-004 The error code from the last command is 1.
can you help me please
Thanks
seek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2004 07:24 PM
08-24-2004 07:24 PM
Re: pro*c and UNIX problem
I do not know much of Pro*C. But it will be a good idea to check the .c file which is generated as part of the compilation of the the .pc file. Check the line no. 725 and th 29th column.
I hope this points at the problem.
Manish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2004 07:29 PM
08-24-2004 07:29 PM
Re: pro*c and UNIX problem
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 03:07 PM
08-25-2004 03:07 PM
Re: pro*c and UNIX problem
Your source is batregarecycle.pc. The pro*c program is a pre-compiler. It processes the .pc file and creates a .c file. If you check the .c file you will find that it is quite a bit larger than your .pc file.
As to the error message you are getting....
It is complaining about the nff label.
Your whenever notfound goto nff; should (if memory serves) create a piece of code similar to the following:
if(sql.code == 1401) goto nff;
I see the nff: label in your snipet so that doesn't make sense.
Using GOTOs and jumping around in the code can make it hard to follow. You might consider using
whenever notfound call nff
and placing the nff code into a subroutine named nff.
That will make it more modular and hopefully easier to follow. It also keeps structured programmers such as me from breaking out in a rash.
--Good Luck
BTW I notice that you have handed out 0 points for your last 7 questions. Handing out a point of two is a nice way of saying thanks :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 05:53 PM
08-25-2004 05:53 PM