 




<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT Answers &#187; ILE Program</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/ile-program/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Sat, 18 May 2013 12:12:40 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>What is the best way of printing to two drawers within the same print job?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/what-is-the-best-wayof-printing-to-two-drawers-within-the-same-print-job/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/what-is-the-best-wayof-printing-to-two-drawers-within-the-same-print-job/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 14:49:38 +0000</pubDate>
		<dc:creator>LLoyd024</dc:creator>
				<category><![CDATA[*IBMSNMPDRV]]></category>
		<category><![CDATA[ILE Program]]></category>
		<category><![CDATA[iSeries printing]]></category>
		<category><![CDATA[V5R4]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[New Discussion Post by]]></description>
				<content:encoded><![CDATA[New Discussion Post by ]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/what-is-the-best-wayof-printing-to-two-drawers-within-the-same-print-job/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Handling errors in CL Programs</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/handling-errors-in-cl-programs/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/handling-errors-in-cl-programs/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 21:10:13 +0000</pubDate>
		<dc:creator>Dcantwell</dc:creator>
				<category><![CDATA[CL Program]]></category>
		<category><![CDATA[Control Language Programming]]></category>
		<category><![CDATA[ILE Program]]></category>
		<category><![CDATA[iSeries]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I&#8217;ve been searching all over the internet (and this site) looking for a good way to generically handle errors within a CL program.  Everything&#8217;s seems very vauge to me. What I&#8217;m looking to do is something like this: CHGSPLFA   FILE(&#038;SPOOLFILE) SAVE(*NO)  MONMSG     MSGID(CPF0000)  EXEC('SEND EMAIL WITH ERROR MESSAGE DETAILS TO A USER AND EXIT PROGRAM') [...]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve been searching all over the internet (and this site) looking for a good way to generically handle errors within a CL program.  Everything&#8217;s seems very vauge to me. </p>
<p>What I&#8217;m looking to do is something like this:</p>
<pre>
CHGSPLFA   FILE(&#038;SPOOLFILE) SAVE(*NO)  
MONMSG     MSGID(CPF0000)  EXEC('SEND EMAIL WITH ERROR MESSAGE DETAILS TO A USER AND EXIT PROGRAM')        
</pre>
<p>I&#8217;d like to know the line it failed at, and all of the message details in the email.  </p>
<p>I know you can do EXEC(GOTO CMDLBL(ERROR)) and use SNDDST to send the email.  I&#8217;m not really sure how to pull the information our of the exception thrown.</p>
<p>I&#8217;m so used to taking care of business with try{} catch(e){} in other languages that I never really learned about proper error handling in CL.</p>
<p>Thanks in advance for the help!<br />
Dave</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/handling-errors-in-cl-programs/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>OPM COBOL Calling ILE Program &#8211; Passing Parameters</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/opm-cobol-calling-ile-program-passing-parameters/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/opm-cobol-calling-ile-program-passing-parameters/#comments</comments>
		<pubDate>Thu, 07 Oct 2010 15:27:00 +0000</pubDate>
		<dc:creator>400Programmer</dc:creator>
				<category><![CDATA[CL Parameters]]></category>
		<category><![CDATA[COBOL]]></category>
		<category><![CDATA[COBOL ILE]]></category>
		<category><![CDATA[ILE Program]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[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 [...]]]></description>
				<content:encoded><![CDATA[<p>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 was the CBL module and the second was the C module. I then created a regulard OPM COBOL program called COBOLOPM. This simply has a call to the SANDBOX *PGM. This works great, no problem. Here is the part that is not working. I want to pass a parm from the COBOLOPM as WS-FLAG. This is simply a test to pass a parm from the COBOLOPM *PGM to the TESTCBLLE *MODULE. I do not know how to do this. Obviously only *PGM&#8217;s can be called. But if I call the ILE *PGM TESTING (which contains my COBOL ILE module and my C module), how will it know I am passing a parm to just the COBOL module. All I wanted to do was put in the linkage section, the WS-FLAG1 and move a &#8216;Y&#8217; to it. Then i had a display back in my COBOLPGM, after my call, to display the flag. This was just a test to pass the parm. Can I call the COBOL module?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/opm-cobol-calling-ile-program-passing-parameters/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Calling C ILE Procedure from COBOL 400 Program</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/calling-c-ile-procedure-from-cobol-400-program/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/calling-c-ile-procedure-from-cobol-400-program/#comments</comments>
		<pubDate>Mon, 04 Oct 2010 20:49:56 +0000</pubDate>
		<dc:creator>400Programmer</dc:creator>
				<category><![CDATA[AS/400 Parameters]]></category>
		<category><![CDATA[COBOL]]></category>
		<category><![CDATA[COBOL/400]]></category>
		<category><![CDATA[ILE Program]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[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 &#8220;TESTC&#8221; USING WS-FIRST-COBOL-NUM WS-SECOND-COBOL-NUM [...]]]></description>
				<content:encoded><![CDATA[<p>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 &#8220;TESTC&#8221; USING WS-FIRST-COBOL-NUM WS-SECOND-COBOL-NUM WS-NUM-TOTAL-COBOL. In the C program I have the following code: #include [stdio.h][/stdio.h]#include [stdio.h][/stdio.h]void &#8220;TESTC&#8221;(int num1, int num2, int total) { total = num1 + num2); return; } I display the numbers before the call to (I hardcode them in the COBOL) the C program and after. Before it displays as 08 09 000 and so does after. I know there is something with the call by reference but I cannot figure it out. I tried using *total on the (int *total and *total = num1 + num2). I also tried doing a call to C as a program using void main and doing the call in COBOL as: CALL &#8220;TESTC&#8221; USING BY REFERENCE WS-FIRST-COBOL-NUM WS-SECOND-COBOL-NUM WS-NUM-TOTAL-COBOL. This just makes it abend. Then I read that you need in the C as: void main(int argc, char * argv[]) but then I didn&#8217;t understand how you pass the real parms you need. I am new to C and ILE.<br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/calling-c-ile-procedure-from-cobol-400-program/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Calling C ILE Program from COBOL 400 ILE Program</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/calling-c-ile-program-from-cobol-400-ile-program/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/calling-c-ile-program-from-cobol-400-ile-program/#comments</comments>
		<pubDate>Fri, 01 Oct 2010 02:22:38 +0000</pubDate>
		<dc:creator>400Programmer</dc:creator>
				<category><![CDATA[CL Parameters]]></category>
		<category><![CDATA[COBOL]]></category>
		<category><![CDATA[COBOL ILE]]></category>
		<category><![CDATA[COBOL/400]]></category>
		<category><![CDATA[ILE Program]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[[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 [...]]]></description>
				<content:encoded><![CDATA[<p>[html xmlns=""><br />
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 num1 and 8 for num2. I would like to pass the num1, num2, and total parms to the C program. The C program would then receive the three variables, comput num1 + num2 and store the result in the variable total. Then return control back to the COBOL program and in the COBOL program, my total variable will be 17. It is very simple as I am trying a proof of concept. I have only developed in COBOL. Having trouble with the calls and the returns.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/calling-c-ile-program-from-cobol-400-ile-program/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Open XL file from ILE program</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/open-xl-file-from-ile-program/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/open-xl-file-from-ile-program/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 20:00:26 +0000</pubDate>
		<dc:creator>filuphaze</dc:creator>
				<category><![CDATA[CSV]]></category>
		<category><![CDATA[IFS]]></category>
		<category><![CDATA[ILE]]></category>
		<category><![CDATA[ILE Program]]></category>
		<category><![CDATA[Microsoft Excel]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[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? [...]]]></description>
				<content:encoded><![CDATA[<p>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?  Could you show me code examples please?  Thank you</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/open-xl-file-from-ile-program/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>ILE &#8211; module change</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/ile-module-change/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/ile-module-change/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 09:39:18 +0000</pubDate>
		<dc:creator>RJES</dc:creator>
				<category><![CDATA[ILE]]></category>
		<category><![CDATA[ILE for iSeries]]></category>
		<category><![CDATA[ILE Program]]></category>
		<category><![CDATA[ILE RPG]]></category>
		<category><![CDATA[iSeries]]></category>
		<category><![CDATA[RPGILE]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[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)?]]></description>
				<content:encoded><![CDATA[<p>Hi,<br />
1) How to find the list of programs using a module (other than find string or hawkeye)  which needs to be modified?<br />
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)?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/ile-module-change/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ILE Call(e) error handling</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/ile-calle-error-handling/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/ile-calle-error-handling/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 17:56:20 +0000</pubDate>
		<dc:creator>filuphaze</dc:creator>
				<category><![CDATA[AS/400 Spooled Files]]></category>
		<category><![CDATA[Call(e)]]></category>
		<category><![CDATA[Error handling]]></category>
		<category><![CDATA[ILE]]></category>
		<category><![CDATA[ILE Call(e) Error]]></category>
		<category><![CDATA[ILE Program]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[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 [...]]]></description>
				<content:encoded><![CDATA[<p>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 </p>
<p>psds         sds<br />
 msgid             40    46<br />
 msgdsc            91   170</p>
<p>however both msgid and msgdsc are blank.  If I use a MONMSG in the CL then my ILE program %error does not show an error.  Any suggestions on how I can determine what error occured in my CL.  The CL converts spoolfile to PDF and then sends it via email and then deletes (DLO) the pdf.  I want to know which process errors out.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/ile-calle-error-handling/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/12 queries in 0.022 seconds using memcached
Object Caching 812/853 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-18 14:43:57 -->