× 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.



If you are familiar with C in general and with AS/400 in general, then it is 
pretty easy.
You create a source physical file for program sources CRTSRCPF YOURLIB/YOURNAME.
Then you start SEU (STRSEU YOURLIB/YOURNAME).
You create a new member by placing a name on the "New member" line (HELLO) and 
set type for new member to "C".

Now you get an empty space, where you have to key in you program. I assume, 
that you know how to use SEU.

It can be something like:

#include <stdio.h>
#include <stdlib.h>

int main()
{
  printf("Hello World!\n") ;
  return(0) ;
}

Looks familiar?
Now you press F3 to save your program.
You exit SEU and key in compile command:

CRTBNDC YOURLIB/HELLO SRCFILE(YOURLIB/YOURNAME).

If OK, you can run 
CALL YOURLIB/HELLO

That's all so simple.

Jevgeni.



> -----Original Message-----
> From: Kumar, Ashok (MIS) [mailto:Ashok.Kumar@xxxxxxxxxxxx]
> Sent: Wednesday, August 03, 2005 10:09 AM
> To: c400-l@xxxxxxxxxxxx
> Subject: [C400-L] RE: C400-L Digest, Vol 3, Issue 56
> 
> 
> Dear All,
> 
> I'm working in AS/400 
> I need to wok with C compiler in AS/400
> Is there anybody can suggest me how to work in this environment.
> 
> Thanks
> Ashok Kumar V 
> Information system analyst  MIS | IT 
> ------------------------------------
> Tel: +91 22 5647 9140 
> Mob: +91 9833188926
> Fax: +91 22 5649 2106 
> (Powai Branch)
> 
> 
> -----Original Message-----
> From: c400-l-bounces+ashok.kumar=tata-aig.com@xxxxxxxxxxxx
> [mailto:c400-l-bounces+ashok.kumar=tata-aig.com@xxxxxxxxxxxx] 
> On Behalf Of
> c400-l-request@xxxxxxxxxxxx
> Sent: Tuesday, August 02, 2005 10:30 PM
> To: c400-l@xxxxxxxxxxxx
> Subject: C400-L Digest, Vol 3, Issue 56
> 
> Send C400-L mailing list submissions to
>       c400-l@xxxxxxxxxxxx
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>       http://lists.midrange.com/mailman/listinfo/c400-l
> or, via email, send a message with subject or body 'help' to
>       c400-l-request@xxxxxxxxxxxx
> 
> You can reach the person managing the list at
>       c400-l-owner@xxxxxxxxxxxx
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of C400-L digest..."
> 
> 
> Today's Topics:
> 
>    1. RE: Data Area API (Elvis Budimlic)
> 
> 
> ----------------------------------------------------------------------
> 
> message: 1
> date: Mon, 1 Aug 2005 12:40:46 -0500
> from: "Elvis Budimlic" <ebudimlic@xxxxxxxxxxxxxxxxxxxxxxxxx>
> subject: RE: [C400-L] Data Area API
> 
> Good question.  I don't know for sure.  
> 
> I peeked at the include file and looks like they link to a 
> system program
> (linkage) so I have to assume they throw exceptions in case of errors.
> 
> It would be nice to find a list of exceptions it can throw, 
> but it doesn't
> look like IBM lists those out.
> 
> Elvis
> 
> 
> -----Original Message-----
>  Subject: RE: [C400-L] Data Area API
> 
> 
> Do you perhaps know how this API reports errors?
> 
> -----Original Message-----
> From: c400-l-bounces+steven=solve400problems.com@xxxxxxxxxxxx
> Subject: RE: [C400-L] Data Area API
> 
> QXXCHGDA - change data area API
> 
> http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c41560
> 7107.htm#HDRQX
> XCHGD
> 
> Elvis
> 
> -----Original Message-----
>  Subject: [C400-L] Data Area API
> 
> All,
> 
> I am currently using the API QWCRDTAA to read data from a data area. 
> 
> Which API can I use to write data?
> 
> I know I can call CHGDTAARA using system("QSYS/CHGDTAARA 
> ...") but it does
> not seem very flexible.
> 
> Steven
> 
> 
> 
> 
> 
> ------------------------------
> 
> _______________________________________________
> This is the C programming iSeries / AS400 (C400-L) digest list
> To post a message email: C400-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/c400-l
> or email: C400-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/c400-l.
> 
> 
> 
> End of C400-L Digest, Vol 3, Issue 56
> *************************************
> IMPORTANT NOTICE: 
> 
> The information in this email (and any attachments) is confidential. 
> If you are not the intended recipient, you must not use or 
> disseminate the
> information.
> If you have received this email in error, please immediately 
> notify me by
> "Reply" command 
> and permanently delete the original and any copies or 
> printouts thereof. 
> Although this email and any attachments are believed to be 
> free of any virus
> or 
> other defect that might affect any computer system into which 
> it is received
> and opened, 
> it is the responsibility of the recipient to ensure that it 
> is virus free
> and no responsibility 
> is accepted by American International Group, Inc. or its 
> subsidiaries or
> affiliates either 
> jointly or severally, for any loss or damage arising in any 
> way from its
> use.
> -- 
> This is the C programming iSeries / AS400 (C400-L) mailing list
> To post a message email: C400-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/c400-l
> or email: C400-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/c400-l.
> 
> 


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.