ILE Program Questions

1

What is the best way of printing to two drawers within the same print job?
I need to print client 1, page 1 from drawer 1, client 1, pages 2-10 from drawer 2 , then cilent 2, page 1 from drawer 1, client 2,pages 2-10 from drawer 2 etc. I am doing this from an ILE program with an externally defined print file. I have tried executing an override printer [...]

Answer Question   |  March 31, 2012  2:49 PM
*IBMSNMPDRV, ILE Program, iSeries printing, V5R4
asked by:
45 pts.

Handling errors in CL Programs
I’ve been searching all over the internet (and this site) looking for a good way to generically handle errors within a CL program.  Everything’s seems very vauge to me. What I’m looking to do is something like this: CHGSPLFA   FILE(&SPOOLFILE) SAVE(*NO)  MONMSG     MSGID(CPF0000)  EXEC('SEND EMAIL WITH ERROR MESSAGE DETAILS TO A USER AND EXIT PROGRAM') [...]

Answer Question   |  February 23, 2011  9:10 PM
CL Program, Control Language Programming, ILE Program, iSeries
asked by:
465 pts.

OPM COBOL Calling ILE Program – Passing Parameters
I have created two modules. One with the CRTCBLMOD. This is *MODULE type named TESTCBLLE. The other one, using the CRTCMOD, I created *MODULE type named TESTCILE. Then I used the CRTPGM to create the single program TESTING with the *PGM type and the attribute *CBLLE. When I did the CRTPGM command, the first entry [...]

Answer Question   |  October 14, 2010  3:27 PM
CL Parameters, COBOL, COBOL ILE, ILE Program
asked by:
185 pts.

Calling C ILE Procedure from COBOL 400 Program
I cannot get the parameters correct on this. I created a module for both the C and the COBOL, then used CRTPGM. My COBOL has WS-FIRST-COBOL-NUM PIC S9(2), WS-SECOND-COBOL-NUM PIC S9(2), WS-NUM-TOTAL-COBOL PIC S9(3) defined in WORKING-STORAGE.                Then I use those for my call to the C procedure as: CALL PROCEDURE “TESTC” USING WS-FIRST-COBOL-NUM WS-SECOND-COBOL-NUM [...]

Answer Question   |  October 20, 2010  8:49 PM
AS/400 Parameters, COBOL, COBOL/400, ILE Program
asked by:
185 pts.

Calling C ILE Program from COBOL 400 ILE Program
[html xmlns=""> I need help in figuring out how to call a C ILE program from a COBOL 400 ILE program. In my example I would like to pass three parameters from the COBOL program (num1, num2, total) to the C program. In the COBOL program I will hardcode the numbers as, say, 9 for [...]

Answer Question   |  October 1, 2010  2:22 AM
CL Parameters, COBOL, COBOL ILE, COBOL/400, ILE Program
asked by:
185 pts.

Open XL file from ILE program
We have a process that converts a spooled file into a .CSV file and stores it in a folder on the IFS. The user then opens Excel and locates and opens the file for editing etc. Is there a way to open up the file in Excel for them after its transferred to the IFS? [...]

Answer Question   |  March 11, 2009  8:00 PM
CSV, IFS, ILE, ILE Program, Microsoft Excel
asked by:
445 pts.

ILE – module change
Hi, 1) How to find the list of programs using a module (other than find string or hawkeye) which needs to be modified? 2) If a module used by more than 15 program needs to be changed, what are the ways to update the impacted programs (apart from running UPDPGM command)?

Answer Question   |  January 28, 2009  9:39 AM
ILE, ILE for iSeries, ILE Program, ILE RPG, iSeries, RPGILE
asked by:
45 pts.

ILE Call(e) error handling
I am calling a CMD from an ILE program (simulates WRKSPLF) that emails a spool file. In my program I use Call(e) and %error indicator is on when CMD is executed if an error occurs during execution however I cannot determine which error happens. I tried using psds sds msgid 40 46 msgdsc 91 170 [...]

Answer Question   |  December 5, 2008  5:56 PM
AS/400 Spooled Files, Call(e), Error handling, ILE, ILE Call(e) Error, ILE Program
asked by:
445 pts.

1