|
Not to my knowledge, but you can easilly create a CL-program consisting of couple of CTRCMOD and one CRTPGM to compile and link you program. It's not as elegant as a MAKE, but it gets the job done. As an alternative, you can have some shortcuts in PDM, each for every release or client you're compiling to, like this: Work with User-Defined Options SECPHG03 File . . . . . . . : QAUOOPT Member . . . . . . : QAUOOPT Library . . . . : QGPL Position to . . . : Type options, press Enter. 2=Change 3=Copy 4=Delete 5=Display Opt Option Command C4 SBMJOB CMD(CRTCMOD MODULE(KOTOBJ/&N) SRCFILE(&L/&S) OUTPUT(*PRINT C5 SBMJOB CMD(CRTCMOD MODULE(KOTOBJ_FSD/&N) SRCFILE(&L/&S) OUTPUT(*P More... Command ===> F3=Exit F4=Prompt F5=Refresh F6=Create F9=Retrieve F10=Command entry F24=More keys Where the short-cut C4 is: SBMJOB CMD(CRTCMOD MODULE(KOTOBJ/&N) SRCFILE(&L/&S) OUTPUT(*PRINT) OPTION(*SHOWSRC) DBGVIEW(*ALL) TGTRLS(V5R1M0)) JOB(&N) Then I have a command LINK, which calls a program like the following: PGM (&PGM &TGTRLS &LIB) DCL &PGM *CHAR 10 DCL &TGTRLS *CHAR 6 DCL &LIB *CHAR 10 MONMSG CPF0000 IF COND(&PGM = 'KOL01C' *OR &PGM = '*ALL') THEN(DO) CRTPGM PGM(&LIB/KOL01C) MODULE(KOL01C CFUNC1 DTAQUEUE ICOS OBJAPI DTAARA LOG LU) ENTMOD(*FIRST) OPTION(*DUPPROC *DUPVAR) TGTRLS(&TGTRLS) ENDDO IF COND(&PGM = 'KOZ06C' *OR &PGM = '*ALL') THEN(DO) CRTPGM PGM(&LIB/KOZ06C) MODULE(KOZ06C CFUNC1 DTAQUEUE ICOS OBJAPI DTAARA LOG LU) ENTMOD(*FIRST) OPTION(*DUPPROC *DUPVAR) TGTRLS(&TGTRLS) ENDDO ENPGM /Joakim ___________________ Joakim Svensson Capgemini -----Original Message----- From: c400-l-bounces+joakim.svensson=capgemini.com@xxxxxxxxxxxx [mailto:c400-l-bounces+joakim.svensson=capgemini.com@xxxxxxxxxxxx] On Behalf Of Damir Dezeljin Sent: den 27 februari 2005 13:06 To: C programming iSeries / AS400 Subject: Re: [C400-L] Linking,... Hi. > a) Most iSeries programmers don't use ICC. The icc program is > something that was created to make Unix people feel at home. iSeries > people don't work from QShell or PASE, they work from OS/400 native tools. I spent some time on reading more OS/400 docs. Now I'm preatty familiar with CL commands. However I don't understand how can I use CL commands to fulfill my needs. I have a project composed by cca. 30 C files and lot of headers. With QSHELL commands it is easy to create an Makefile. Does it exist something similar to be used with OS/400 Menus? Best regards, Dezo This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
As an Amazon Associate we earn from qualifying purchases.
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.