<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Satriatama on Medium]]></title>
        <description><![CDATA[Stories by Satriatama on Medium]]></description>
        <link>https://medium.com/@satriatama121?source=rss-f887281d0433------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*D7rWV_t3SLzPynV-</url>
            <title>Stories by Satriatama on Medium</title>
            <link>https://medium.com/@satriatama121?source=rss-f887281d0433------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 03:11:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@satriatama121/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to make RPGLE as a Web Services (2/2)]]></title>
            <link>https://medium.com/@satriatama121/how-to-make-rpgle-as-a-web-services-2-2-a979948fd7d9?source=rss-f887281d0433------2</link>
            <guid isPermaLink="false">https://medium.com/p/a979948fd7d9</guid>
            <category><![CDATA[ibm-i-series]]></category>
            <category><![CDATA[web-services]]></category>
            <category><![CDATA[endpoints]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[as400]]></category>
            <dc:creator><![CDATA[Satriatama]]></dc:creator>
            <pubDate>Sat, 01 Feb 2025 09:38:59 GMT</pubDate>
            <atom:updated>2025-02-01T09:38:59.346Z</atom:updated>
            <content:encoded><![CDATA[<h4>using itoolkitjs to make endpoint as a web service</h4><p>In this section, we will create a web service endpoint using ExpressJS and itoolkit to interact with the RPGLE program on AS400 (IBM iSeries). We will cover the steps to install requirements, set up the web server, integrate with AS400, and configure Postman for testing.</p><h3>Step-by-Step Creation of JS with ExpressJS</h3><p>After creating the RPGLE program on AS400 (IBM iSeries), the next step is to create a web service endpoint using ExpressJS and itoolkit. This will allow us to interact with the RPGLE program via RESTful API calls.</p><h4>1. Install Requirements</h4><p>First, ensure you have Node.js and npm installed on your machine. Then, create a new directory for your project and initialize it with npm:</p><pre>mkdir as400-web-service<br>cd as400-web-service<br>npm init -y</pre><p>Next, install the necessary packages:</p><pre>npm install express itoolkit fast-xml-parser</pre><h4>2. Create Web Server</h4><p>Create a file named caller.js and set up the basic Express server:</p><pre>const express = require(&#39;express&#39;);<br>const { Connection, ProgramCall } = require(&#39;itoolkit&#39;);<br>const { XMLParser } = require(&#39;fast-xml-parser&#39;);<br><br>const app = express();<br>const port = 3000; // Bisa diganti sesuai kebutuhan<br><br>// Middleware untuk parsing JSON<br>app.use(express.json());<br><br>// Membuat koneksi ke AS400<br>const connection = new Connection({<br>    transport: &#39;ssh&#39;,<br>    transportOptions: {<br>      host: &#39;pub400.com&#39;,<br>      port: 2222,<br>      username: &#39;USERNAME&#39;,<br>      password: &#39;URPASSWORD&#39;,<br>    },<br>});<br><br>// Endpoint untuk memanggil JDWLMAIN program<br>app.post(&#39;/addcustomer&#39;, (req, res) =&gt; {<br>  const receiver = {<br>    name: &#39;WSMAIN&#39;,<br>    type: &#39;ds&#39;, <br>    fields: [<br>      { name: &#39;iid&#39;, type: &#39;10A&#39;, value: req.body.iid || &#39;&#39; }, // Default value jika tidak diberikan<br>      { name: &#39;iname&#39;, type: &#39;10A&#39;, value: req.body.iname || &#39;&#39; },<br>      { name: &#39;iaddress&#39;, type: &#39;10A&#39;, value: req.body.iaddress || &#39;&#39; },<br>      { name: &#39;ores&#39;, type: &#39;2A&#39;, value: &#39;&#39; }, // Output field, initialize as empty<br>      { name: &#39;odesc&#39;, type: &#39;50A&#39;, value: &#39;&#39; } // Output field, initialize as empty<br>    ],<br>  };<br><br>  const command = new ProgramCall(&#39;WSMAIN&#39;, { lib: &#39;YOURLIB&#39; });<br>  command.addParam(receiver);<br><br>  connection.add(command);<br><br>  // Menjalankan command<br>  connection.run((error, xmlOutput) =&gt; {<br>    if (error) {<br>      return res.status(500).json({ error: &#39;Error executing AS400 command&#39;, details: error });<br>    }<br><br>    // Parsing XML output<br>    const parser = new XMLParser();<br>    const result = parser.parse(xmlOutput);<br><br>    // Mengirimkan response dalam bentuk JSON<br>    res.json(result);<br>  });<br>});<br><br>// Menjalankan server<br>app.listen(port, () =&gt; {<br>  console.log(`Server listening at http://localhost:${port}`);<br>});</pre><h4>3. Integration to AS400 Server</h4><p>In the caller.js file, we have already set up the connection to AS400 using itoolkit. Here’s a breakdown of the integration:</p><ul><li><strong>Connection Setup:</strong></li></ul><pre>const connection = new Connection({<br>    transport: &#39;ssh&#39;,<br>    transportOptions: {<br>      host: &#39;pub400.com&#39;,<br>      port: 2222,<br>      username: &#39;&#39;,<br>      password: &#39;&#39;,<br>    },<br>});</pre><ul><li><strong>Program Call:</strong></li></ul><pre>const command = new ProgramCall(&#39;WSMAIN&#39;, { lib: &#39;URLIB&#39; });<br>command.addParam(receiver);</pre><ul><li><strong>Running The Command:</strong></li></ul><pre>connection.run((error, xmlOutput) =&gt; {<br>  if (error) {<br>    return res.status(500).json({ error: &#39;Error executing AS400 command&#39;, details: error });<br>  }<br><br>  const parser = new XMLParser();<br>  const result = parser.parse(xmlOutput);<br><br>  res.json(result);<br>});</pre><h4><strong>4. Postman Setup</strong></h4><p>To test the web service endpoint, you can use Postman. Here’s how to set it up:</p><ol><li><strong>Open Postman</strong> and create a new request.</li><li><strong>Set the request type</strong> to POST.</li><li><strong>Enter the URL</strong> for your endpoint, e.g., <a href="http://localhost:3000/addcustomer.">http://localhost:3000/addcustomer.</a></li><li><strong>Set the request body</strong> to JSON and provide the necessary input data:</li></ol><pre>{<br>  &quot;iid&quot;: &quot;0000000001&quot;,<br>  &quot;iname&quot;: &quot;Satria Tama&quot;,<br>  &quot;iaddress&quot;: &quot;Jakarta&quot;<br>}</pre><p><strong>5. Response From Postman</strong></p><p>After <strong>Send the request</strong> you’ll get the response from the server.</p><pre>{<br>    &quot;?xml&quot;: &quot;&quot;,<br>    &quot;myscript&quot;: {<br>        &quot;pgm&quot;: {<br>            &quot;parm&quot;: {<br>                &quot;ds&quot;: {<br>                    &quot;data&quot;: [<br>                        1,<br>                        &quot;Satria Tam&quot;,<br>                        &quot;Jakarta&quot;,<br>                        1,<br>                        &quot;Data Successfully Updated&quot;<br>                    ]<br>                }<br>            },<br>            &quot;success&quot;: &quot;+++ success MUSTOFA1 WSMAIN &quot;<br>        }<br>    }<br>}</pre><h3>Conclusion</h3><p>By following these steps, you have created a web service endpoint using ExpressJS and itoolkit that interacts with an RPGLE program on AS400. This setup allows you to leverage the capabilities of AS400 while using modern web technologies. If you have any questions or need further assistance, feel free to ask!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a979948fd7d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to make RPGLE as a Web Services (1/2)]]></title>
            <link>https://medium.com/@satriatama121/how-to-make-rpgle-as-a-web-services-1-2-d647ef8a9e5a?source=rss-f887281d0433------2</link>
            <guid isPermaLink="false">https://medium.com/p/d647ef8a9e5a</guid>
            <category><![CDATA[ile]]></category>
            <category><![CDATA[web-services]]></category>
            <category><![CDATA[rpgle]]></category>
            <category><![CDATA[ibm-i-series]]></category>
            <category><![CDATA[as400]]></category>
            <dc:creator><![CDATA[Satriatama]]></dc:creator>
            <pubDate>Sat, 01 Feb 2025 09:24:02 GMT</pubDate>
            <atom:updated>2025-02-01T09:24:02.767Z</atom:updated>
            <content:encoded><![CDATA[<h4>using itoolkitjs to make endpoint as a web service</h4><h3>Introduction</h3><p>AS400 is a robust system developed by IBM, widely used across various industries around the globe. One of the key sectors that rely on AS400 is the banking industry. The reason for its popularity is its reliability and performance. However, AS400 does have its drawbacks. With the rapid advancement of technology, these limitations pose a challenge to make AS400 a reliable system for web services.</p><p>In this tutorial, we’ll explore how to leverage JavaScript to create a web service using AS400. Here, JavaScript will primarily be used to set up the API endpoint and facilitate communication with AS400. All the logic and data manipulation will be handled by RPGLE.</p><h3>Data Structure for PF</h3><p>Before diving into the main RPGLE program, it’s essential to establish the foundation of your database by creating Physical Files (PF). These files act as tables in your database. Here’s a brief overview of what you’ll need to do:</p><ul><li><strong>Data Storage PF:</strong> This file will be used to store the actual data. Think of it as the table where all your records will reside.</li><li><strong>Data Structure PF:</strong> This file is crucial for defining the structure of your data. It will be used during the initialization of the files that you’ll work with in your RPGLE program.</li></ul><p>By setting up these two files, you ensure that your database is well-organized and ready for the operations you’ll perform in your RPGLE program. This step is fundamental in ensuring that your application runs smoothly and efficiently.</p><h4><strong>1. </strong>PF for Data Storage</h4><p>We will create a simple Physical File (PF) that will store customer data, which will be utilized for our CRUD operations through an endpoint. The PF will be named custrec.pf. Here’s how the structure looks:</p><pre>     A          R RCUSTREC         <br>     A            ID            10A<br>     A            NAME          10A<br>     A            ADDRESS       10A</pre><h4><strong>Fields:</strong></h4><ul><li><strong>ID:</strong> A 10-character field to store the customer ID.</li><li><strong>NAME:</strong> A 10-character field to store the customer name.</li><li><strong>ADDRESS:</strong> A 10-character field to store the customer name.</li></ul><p>This file will serve as the main storage for customer records, allowing us to perform Create, Read, Update, and Delete operations.</p><h4><strong>2. </strong>PF for Data Structure</h4><p>After successfully creating the PF for data storage, we will create another PF that will be used for an external data structure. This structure will help in managing the data flow during CRUD operations. The structure is defined as follows:</p><pre>                R EDSADDJDWR                           <br>                  IKEY          10A         <br>                  INAME         10A    <br>                  IADDRESS      10A<br>                  ORES           2A<br>                  ODESC         50A</pre><ul><li><strong>IKEY:</strong> A 10-character input field for the key (e.g., customer ID).</li><li><strong>INAME:</strong> A 10-character input field for the customer name.</li><li><strong>IADDRESS:</strong> A 10-character input field for the customer name.</li><li><strong>ORES:</strong> A 2-character output field to indicate the result of the operation (success or failure).</li><li><strong>ODESC:</strong> A 50-character output field to provide a description of the result.</li></ul><h4>Explanation of the Structure</h4><ul><li>The prefix <strong>“I”</strong> indicates input fields, which are used when adding or updating data.</li><li>The prefix <strong>“O”</strong> indicates output fields, which are used to display the response indicating whether the update was successful or failed.</li><li>For retrieving data (Get operation), there is no need to use the external data structure.</li></ul><p>By setting up these two PFs, you create a solid foundation for your CRUD operations, ensuring that data is stored and managed effectively.</p><h3>Step By Step Pembuatan RPGLE</h3><p>After successfully creating the required Physical Files (PF), we can now proceed to create the RPGLE program. This program will execute the main logic for the CRUD operations and will be executed by itoolkit using JavaScript.</p><h4>1. File and Variable Declarations</h4><p>Since we are using an external data structure, the file declaration process is simplified because we do not need to redeclare the fields required. Here’s how to set up the declarations in your RPGLE program:</p><pre>     H DFTACTGRP(*NO) PGMINFO(*PCML : *MODULE)<br>     FCUSTREC   UF A E           K DISK    PREFIX(C)<br>     D XACUSTREC     E DS                  EXTNAME(XACUSTREC)<br><br><br>     D WSMAIN          PI<br>     D PARAMS                              LIKEDS(XACUSTREC)</pre><p><strong>Explanation of the Code:</strong></p><ul><li><strong>**H DFTACTGRP(*NO) PGMINFO(<em>PCML : MODULE):</em></strong></li></ul><p>This header specifies that the program does not use a default activation group and that it is a module that can be called from other programs or procedures.</p><ul><li><strong>FCUSTREC UF A E K DISK PREFIX(C):</strong></li></ul><p>This line declares the CUSTREC file as a user-defined file (UF) with access type A (input/output) and E (external). The K indicates that this file has a key. The PREFIX(C) option allows us to reference fields in this file with a prefix of C, making it easier to identify which fields belong to this file.</p><ul><li><strong>D XACUSTREC E DS EXTNAME(XACUSTREC):</strong></li></ul><p>This line declares an external data structure named XACUSTREC. The E DS indicates that this is a data structure, and EXTNAME(XACUSTREC) specifies that it will use the external data structure defined in the PF we created earlier.</p><ul><li><strong>D WSMAIN PI:</strong></li></ul><p>This line defines a procedure interface named WSMAIN. The PI indicates that this is a procedure interface.</p><ul><li><strong>D PARAMS LIKEDS(XACUSTREC):</strong></li></ul><p>This line declares a parameter named PARAMS that is like the data structure XACUSTREC. This means that PARAMS will have the same fields and types as defined in the external data structure.</p><h4>2. Logic Program</h4><p>Now that we have set up the declarations, let’s implement the main logic of the RPGLE program. This logic will handle the Create, and Update operations based on the input parameters. Here’s how the code looks:</p><pre>       /FREE<br>        monitor;<br>          if (PARAMS.IID = *blanks or PARAMS.INAME = *blanks<br>              or PARAMS.IADDRESS = *blanks);<br>            PARAMS.ORES = &#39;99&#39;;<br>            PARAMS.ODESC = &#39;(ERROR) Wrong Input / Blank Input&#39;;<br>            Return;<br>            *INLR = *ON;<br>          endif;<br>          chain (PARAMS.IID) CUSTREC;<br>          if %found(CUSTREC);<br>            // Edit data<br>            CNAME = PARAMS.INAME;<br>            CADDRESS = PARAMS.IADDRESS;<br>            update RCUSTREC;<br>            PARAMS.ORES = &#39;01&#39;;<br>            PARAMS.ODESC = &#39;Data Successfully Updated&#39;;<br>            Return;<br>            *INLR = *ON;<br>          else;<br>            // Create data<br>              CID = PARAMS.IID;<br>              CNAME = PARAMS.INAME;<br>              CADDRESS = PARAMS.IADDRESS;<br>              write RCUSTREC;<br>              PARAMS.ORES = &#39;00&#39;;<br>              PARAMS.ODESC = &#39;Data Successfully Created&#39;;<br>              Return;<br>              *INLR = *ON;<br>          endif;<br>        on-error;<br>          PARAMS.ORES = &#39;98&#39;;<br>          PARAMS.ODESC = &#39;(ERROR) Error on Main Program &#39;+%CHAR(%STATUS);<br>        endmon;<br>        *INLR = *ON;<br>      /END-FREE</pre><h3>Explanation of the Logic</h3><ol><li><strong>Monitor Block:</strong></li></ol><p>The monitor; statement is used to handle exceptions that may occur during the execution of the program.</p><ol><li><strong>Input Validation:</strong></li></ol><p>The first if statement checks if any of the input fields (IID, INAME, or IADDRESS) are blank. If any of these fields are blank, it sets the output response (ORES) to &#39;99&#39; and provides an error description (ODESC). The program then returns early.</p><ol><li><strong>Chain Operation:</strong></li></ol><p>The chain (PARAMS.IID) CUSTREC; statement attempts to find a record in the CUSTREC file using the provided IID. If a record is found, the %found(CUSTREC) condition will be true.</p><p><strong>Update Existing Record:</strong></p><ul><li>If the record is found, the program updates the existing customer data:</li><li>It assigns the input name and address to the corresponding fields (CNAME and CADDRESS).</li><li>The update RCUSTREC; statement updates the record in the file.</li><li>It sets the output response to ‘01’ and provides a success message.</li></ul><p><strong>Create New Record:</strong></p><ul><li>If no record is found, the program proceeds to create a new customer record:</li><li>It assigns the input values to the fields (CID, CNAME, and CADDRESS).</li><li>The write RCUSTREC; statement writes the new record to the file.</li><li>It sets the output response to ‘00’ and provides a success message.</li></ul><p><strong>Error Handling:</strong></p><p>The on-error; block captures any errors that occur during the execution of the program. If an error occurs, it sets the output response to &#39;98&#39; and provides an error message that includes the status code.</p><p><strong>End of Program:</strong></p><p>The *INLR = *ON; statement indicates that the program is finished and that resources can be released.</p><p>In the next part, we will create a web service endpoint using JavaScript with the help of the itoolkit library. Stay tuned for the next steps!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d647ef8a9e5a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making AS400 Commands Easier: Shortening “wrkmbrpdm” to “wm”]]></title>
            <link>https://medium.com/@satriatama121/making-as400-commands-easier-shortening-wrkmbrpdm-to-wm-9e47ee1aa7c3?source=rss-f887281d0433------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e47ee1aa7c3</guid>
            <category><![CDATA[i-series]]></category>
            <category><![CDATA[cmd]]></category>
            <category><![CDATA[ibm-i-series]]></category>
            <category><![CDATA[clp]]></category>
            <category><![CDATA[as400]]></category>
            <dc:creator><![CDATA[Satriatama]]></dc:creator>
            <pubDate>Tue, 28 Jan 2025 14:52:20 GMT</pubDate>
            <atom:updated>2025-01-28T14:52:20.095Z</atom:updated>
            <content:encoded><![CDATA[<p>In the fast-paced world of business computing, every second counts. The AS400 system is a powerhouse for managing data and processes, but let’s face it, typing out long commands like <strong>wrkmbrpdm</strong> over and over can be a drag. Wouldn’t it be great if you could just type <strong>wm</strong> instead? Well, you’re in luck! In this article, we’re going to show you how to do just that, making your life a little easier and your work a lot more efficient on the AS400.</p><h3>Steps By Steps</h3><h4>Create CLP file (WPCLP.CLP)</h4><p>In this step, we will create a Command Language Program (CLP) file that allows users to work with members in a specified file and library on the AS400 system. The following code snippet demonstrates how to define the program, declare variables, and handle parameters effectively. This program is designed to streamline the process of accessing member lists, making it easier for users to manage their data.</p><pre>             PGM        PARM(&amp;FILE &amp;LIB)<br><br>             DCL        VAR(&amp;FILE) TYPE(*CHAR) LEN(10)<br>             DCL        VAR(&amp;LIB) TYPE(*CHAR) LEN(10)<br><br>             /* INITIALIZE VARIABLES IF PARAMETERS ARE NOT PASSED */<br>             MONMSG     MSGID(CPF0001) EXEC(GOTO CMDLBL(NO_PARAMS))<br><br>             IF         COND(&amp;LIB *EQ &#39; &#39;) THEN(CHGVAR VAR(&amp;LIB) VALUE(&#39;*LIBL&#39;))<br><br>             /* CALL WRKMBRPDM WITH SPECIFIED FILE AND LIBRARY */<br>             WRKMBRPDM  FILE(&amp;LIB/&amp;FILE)<br>             RETURN<br><br>NO_PARAMS:   /* HANDLE CASE WHEN NO PARAMETERS ARE PASSED */<br>             WRKMBRPDM<br>             RETURN<br><br>             ENDPGM</pre><p><strong>Explanation of the Code:</strong></p><ol><li><strong>Program Declaration</strong>: The program starts with the PGM command, which defines the program and its parameters. Here, &amp;FILE and &amp;LIB are the parameters that will be passed to the program.</li><li><strong>Variable Declaration</strong>: The DCL commands declare two character variables, &amp;FILE and &amp;LIB, each with a length of 10 characters. These variables will hold the names of the file and library provided by the user.</li><li><strong>Error Handling</strong>: The MONMSG command is used to monitor for any messages, specifically looking for the message ID CPF0001, which indicates that no parameters were passed. If this message is encountered, the program jumps to the label NO_PARAMS.</li><li><strong>Library Initialization</strong>: The IF statement checks if the &amp;LIB variable is empty. If it is, the program changes its value to *LIBL, which refers to the library list. This ensures that the program has a valid library to work with.</li><li><strong>Calling the Command</strong>: The WRKMBRPDM command is then called with the specified file and library. This command allows users to work with the members of the specified file.</li><li><strong>Return Statement</strong>: The RETURN command is used to exit the program after executing the necessary commands.</li><li><strong>Handling No Parameters</strong>: The NO_PARAMS label handles the scenario where no parameters are passed. In this case, it simply calls WRKMBRPDM without any specific file or library, allowing the user to work with the default settings.</li><li><strong>End of Program</strong>: Finally, the ENDPGM command signifies the end of the program.</li></ol><h4>Create CMD file (WM.CMD)</h4><p>In this section, we will introduce a command file (CMD) that serves as a shortcut for the <strong>WRKMBRPDM</strong> command. This CMD file simplifies the process of working with members in a library by allowing users to quickly access the <strong>WRKMBRPDM</strong> functionality with a more concise command. Below is the code for the CMD file, along with an explanation of its components.</p><pre>CMD        PROMPT(&#39;Shortcut for WRKMBRPDM&#39;)<br>PARM       KWD(FILE) TYPE(*NAME) LEN(10) PROMPT(&#39;WM&#39;)<br>PARM       KWD(LIB) TYPE(*NAME) LEN(10) DFT(*LIBL) PROMPT(&#39;[MYLIB]&#39;)</pre><h4>Explanation of the Code:</h4><ol><li><strong>CMD PROMPT(‘Shortcut for WRKMBRPDM’)</strong>: This line defines the command and provides a prompt that will be displayed to the user when they invoke the command. It indicates that this command is a shortcut for the <strong>WRKMBRPDM</strong> function.</li><li><strong>PARM KWD(FILE) TYPE(*NAME) LEN(10) PROMPT(‘WP’)</strong>: This line defines a parameter for the command. The parameter is named <strong>FILE</strong>, and it is of type *NAME with a maximum length of 10 characters. The prompt ‘WP’ indicates that this parameter is used to specify the file name when the command is executed.</li><li><strong>PARM KWD(LIB) TYPE(*NAME) LEN(10) DFT(*LIBL) PROMPT(‘MYLIB’)</strong>: This line defines another parameter for the command, named <strong>LIB</strong>. Similar to the previous parameter, it is of type *NAME with a maximum length of 10 characters. The default value is set to *LIBL, which means that if the user does not specify a library, the command will use the library list. The prompt ‘[MYLIB]’ provides a hint to the user about what this parameter represents.</li></ol><h4>Configure It!</h4><p>After creating the CLP and CMD programs, the next step is to configure them so that we can use them as alternative command programs. Here’s how to set it up:</p><ol><li><strong>Create the CMD Program as the Default Command</strong></li></ol><p>To establish a command that executes the CMD program, we will use the following code:</p><pre>CRTCMD CMD(MYLIB/WM) PGM(MYLIB/WPCLP) SRCFILE(*LIBL/[SOURCEFILE])<br><br>EXAMPLE:<br>CRTCMD CMD(MUSTOFA1/WM) PGM(MUSTOFA1/WPCLP) SRCFILE(MUSTOFA1/QBELAJARCL)</pre><p>In this code, CRTCMD is used to create a command that will execute the CMD program located at MYLIB/WPCLP whenever we type WM. Once this code is added, we can easily use the command by simply typing:</p><pre>MYLIB/WM</pre><p>2. <strong>Change the Default User Profile for Simplicity</strong></p><p>To make the command usage even simpler, we can change the default user profile with the following command:</p><pre>CHGUSRPRF USRPRF(user_name) CURLIB(library_name)</pre><p>If this command executes successfully, we will have completed this step. Now, instead of typing WRKMBRPDM, we can just use WM to access the member management functionality.</p><p>By following these steps, we streamline our workflow and enhance our productivity in the AS400 environment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e47ee1aa7c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 4: Implementing Logic with RPGLE for CRUD Operations]]></title>
            <link>https://medium.com/@satriatama121/part-3-implementing-logic-with-rpgle-for-crud-operations-d9beb9dc0c3e?source=rss-f887281d0433------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9beb9dc0c3e</guid>
            <category><![CDATA[as400]]></category>
            <category><![CDATA[ibm-i-series]]></category>
            <category><![CDATA[ibm]]></category>
            <category><![CDATA[rpgle]]></category>
            <dc:creator><![CDATA[Satriatama]]></dc:creator>
            <pubDate>Wed, 01 Jan 2025 13:41:54 GMT</pubDate>
            <atom:updated>2025-01-02T07:51:30.983Z</atom:updated>
            <content:encoded><![CDATA[<p>After successfully creating the member file, display file, and database using a Physical File (PF), the next step is to develop an RPGLE program. This program will serve as the foundation for implementing the logic required for CRUD (Create, Read, Update, Delete) operations in the AS400 environment.</p><p>RPGLE (Report Program Generator Language Enhanced) is a high-level programming language developed by IBM, specifically designed for business applications. With its powerful data processing capabilities and seamless integration with database systems, RPGLE enables developers to build efficient and maintainable applications. In the context of AS400, RPGLE is the preferred choice due to its ability to directly interact with files and databases while offering a clear structure for application development.</p><p>In this section, we will explore how to implement CRUD logic using RPGLE, allowing the application to perform essential operations required for effective data management.</p><h3>Basic Structure of an RPGLE Program</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C5lpBTtAIQO6LVm6nUWh1w.png" /></figure><pre>H                                                                       <br>FCUSTPF01  UF A E           K DISK                                      <br>FCUSTDSPF01CF   E             WORKSTN                                   <br>F                                     SFILE(DSPSFL:RRN#)                <br>D RRN#            S              4S 0                                   <br>D SMNID           S             10A                                     <br>D TmpID           S                   Like(CUSTID)                      <br>                                                                        <br>D TmpNAME         S                   Like(CUSTNAME)                                    </pre><p>Once inside the RPGLE member file, the first step is to declare variables, databases, and display files (DSPF) that will be used in the program. These declarations are done using the <strong>C Specification (C Spec)</strong> style. Below is a step-by-step explanation of the declarations:</p><h4>Tips for Declaring Variables, Databases, and Display Files</h4><p>To simplify the process, press <strong>F4</strong> on the line where your cursor is placed. This will open a prompt like the one shown in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JVJX6InkjIbDiy17iwXPWg.png" /></figure><p>When the textbox appears (highlighted in the red box), you can fill in the required fields. To understand the purpose of each input field, you can press <strong>F1</strong> while the cursor is on that field for guidance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*DEko6YlUrb67e3BfPp5Pdw.gif" /></figure><ol><li><strong>File Declarations</strong></li></ol><p><strong>FCUSTPF01 UF A E K DISK</strong></p><ul><li><strong>FCUSTPF01</strong>: The name of the file to be used in the program.</li><li><strong>U: </strong>Indicates that this file will be used to update records.</li><li><strong>F</strong>: Denotes that the file is a full procedural file.</li><li><strong>A</strong>: Signifies that the file will allow adding new records.</li><li><strong>E</strong>: Indicates that the file is externally described.</li><li><strong>K: </strong>Specifies that the file uses key values for processing.</li><li><strong>DISK</strong>: Defines the file as a disk file.</li></ul><p><strong>FCUSTDSPF01 CF E WORKSTN</strong></p><ul><li><strong>FCUSTDSPF01</strong>: The name of the display file to be used.</li><li><strong>C: </strong>Denotes that the file is for both input and output operations.</li><li><strong>F</strong>: Indicates a full procedural file.</li><li><strong>E</strong>: Signifies that the file is externally described.</li><li><strong>WORKSTN</strong>: Specifies the file as a workstation file.</li></ul><p><strong>2. Variable Declarations</strong></p><p><strong>D RRN# S 4S 0</strong></p><ul><li><strong>D RRN#</strong>: The name of the variable to be used.</li><li><strong>S: </strong>Indicates a standalone variable.</li><li><strong>4</strong>: Specifies the length of the variable.</li><li><strong>S</strong>: Denotes the data type as numeric.</li><li><strong>0</strong>: Indicates the number of decimal places.</li></ul><p><strong>D SMNID S 10A</strong></p><ul><li><strong>D SMNID</strong>: The name of the variable to be used.</li><li><strong>S: </strong>Indicates a standalone variable.</li><li><strong>10</strong>: Specifies the length of the variable.</li><li><strong>A</strong>: Denotes the data type as character.</li></ul><p><strong>D TmpID S LIKE(CUSTID)</strong></p><p><strong>D TmpNAME S LIKE(CUSTNAME)</strong></p><ul><li><strong>D TmpID</strong>: Names of the variables to be used.</li><li><strong>S: </strong>Indicates standalone variables.</li><li><strong>LIKE(CUSTID)</strong>: Specifies that the attributes are derived from the referenced field (e.g., CUSTID or CUSTNAME).</li></ul><p>By declaring files and variables as shown above, you have set up the basic structure required for the subsequent steps in RPGLE program development. These declarations are crucial as they determine how data will be accessed and processed within the application.</p><p>Next, we will discuss how to read data from the files declared in this program.</p><h3>Main Logic of the Program</h3><ol><li>Main Loop with Exit Condition</li></ol><pre>/FREE<br>Dow *In03 = *Off;<br>// Implementasi Kode<br>Enddo;<br>*INLR = *ON;<br>/END-FREE</pre><ul><li>The FREE and END-FREE directives indicate that the program is written in <strong>free-format</strong>, which allows for more modern and readable code compared to fixed-format.</li><li>Dow *In03 = *Off;<br>The program enters a loop that continues running as long as the F3 (exit key) indicator is <strong>off</strong>.</li><li>*In03 corresponds to the F3 key function.</li><li>When the user presses the F3 key, *In03 is set to <strong>on</strong>, causing the loop to terminate.</li><li>*INLR = *ON;<br>At the end of the loop, the *INLR (Last Record) indicator is set to <strong>on</strong>. This tells the system that the program has completed its tasks and can be terminated properly.</li></ul><p><strong>2. Error Handling</strong></p><pre>Monitor;<br>  // Implementasi Kode<br>On-Error;<br>  MSGNYA = %char(%STATUS);<br>  DSPLY MSGNYA;<br>  *INLR = *ON;<br>  Return;<br>EndMon;</pre><ul><li>The Monitor block captures errors that occur during execution.</li><li>If an error occurs, the On-Error section is executed.</li><li>%STATUS retrieves the status code of the error, and it is displayed using DSPLY.</li><li>The program is terminated gracefully by setting *INLR = *ON.</li></ul><p><strong>3. Inisiasi Kode</strong></p><pre>Monitor;<br>  RRN# = 0;<br>  Exsr $ClearSr;<br>  Exsr $LoadSr;<br>  EXFMT DSPCTL;</pre><ul><li><strong>RRN# = 0;</strong>: Resets the relative record number for the subfile.</li><li><strong>Exsr $ClearSr;</strong>: Clears variables or the display file using a predefined subroutine.</li><li><strong>Exsr $LoadSr;</strong>: Loads data into the subfile using another subroutine.</li><li><strong>EXFMT DSPCTL;</strong>: Displays the main control screen to interact with the user.</li></ul><p><strong>4. CRUD Logic</strong></p><pre>SELECT;<br>  When *In06 = *On;<br>    Exsr $ADDSR; // Menambahkan data baru<br>  Other;<br>    ReadC DSPSFL; // Membaca record dari subfile<br>EndSl;</pre><p><strong>Adding Data</strong></p><ul><li>When the F6 key is pressed (*In06 = *On), the $ADDSR subroutine is called to add new data.</li><li>If F6 is not pressed, the program reads a record from the subfile using ReadC DSPSFL.</li></ul><p><strong>Updating Data</strong></p><pre>If INPOPT = &#39;2&#39;;<br>  DoW Not %Eof;<br>    Exfmt UPDREC;  // Tampilkan layar untuk update<br>    Exsr $UPDDATA; // Jalankan subroutine untuk update data<br>    Update DSPSFL; // Update subfile<br>    ReadC DSPSFL;<br>  EndDo;</pre><ul><li>When the user selects option 2, the program enters a loop to process updates.</li><li>The Exfmt UPDREC displays the update screen for user input.</li><li>$UPDDATA subroutine processes the update logic.</li><li>The updated record is saved back to the subfile using Update DSPSFL.</li></ul><p><strong>Deleting Data</strong></p><pre>ElseIf INPOPT = &#39;4&#39;;<br>  DoW Not %Eof;<br>    Exfmt DELVALD; // Tampilkan layar konfirmasi penghapusan<br>    Exsr $DELDATA; // Jalankan subroutine untuk menghapus data<br>    Update DSPSFL; // Update subfile<br>    ReadC DSPSFL;<br>  EndDo;</pre><ul><li>When the user selects option 4, the program calls the $DELDATA subroutine to delete data.</li><li>A confirmation screen is displayed using Exfmt DELVALD.</li><li>After deletion, the subfile is updated with the Update DSPSFL command.</li></ul><p><strong>5. Subroutine CRUD</strong></p><p><strong>Subroutine $LoadSr</strong></p><pre>Begsr $LoadSr;<br>  RRN# = 0;<br>  If INPID = *Blanks;<br>    Setll *loval CUSTPF01;<br>    Read CUSTPF01;<br>    If %eof(CUSTPF01);<br>      RRN# = 1;<br>    Else;<br>      DoW Not %eof(CUSTPF01);<br>          RRN# = RRN# + 1;<br>          Write DSPSFL;<br>          Read CUSTPF01;<br>      EndDo;<br>    EndIf;<br>  ELSE;<br>    TmpID = INPID;<br>    SETLL (TmpID) CUSTPF01;<br>    Chain (TmpID) CUSTPF01;<br>    If %Found(CUSTPF01);<br>        RRN# = RRN# + 1;<br>        Write DSPSFL;<br>    ELSE;<br>        MSGNYA = &#39;Customer ID (&#39;+ %TRIM(TmpID) +&#39;) Not Found&#39;;<br>        Exfmt ERRMSG;<br>    ENDIF;<br>  ENDIF;<br>ENDSR;</pre><p>Loads data into a subfile based on the input.</p><ul><li>If INPID is blank, all records are loaded from the file using a loop.</li><li>If INPID is provided, the specific record is retrieved using CHAIN.</li><li>Displays an error message if the record is not found.</li></ul><p><strong>Subroutine </strong><strong>$ClearSr</strong></p><pre>BegSr $ClearSr;<br>  *In50 = *Off;<br>  Write DSPCTL;<br>  *IN50 = *ON;<br>EndSr;</pre><p>Clears the display and resets relevant indicators.</p><ul><li>Writes the control record (DSPCTL) to refresh the screen.</li><li>Used to reset variables and indicators before executing other processes.</li></ul><p><strong>Subroutine </strong><strong>$AddSr</strong></p><pre>BegSr $AddSr;<br>  *In06 = *Off;<br>  CUSTID = *BLANKS;<br>  CUSTDESC = *BLANKS;<br>  CUSTNAME = *BLANKS;<br>  DoU *In12 = *Off;<br>    EXFMT ADDCUST;<br>    Exsr $ADDCUST;<br>    If *In12 = *On;<br>        *In12= *Off;<br>        Leave;<br>    EndIf;<br>  EndDo;<br>EndSr;</pre><ul><li>Clears input fields before showing the ADDCUST screen.</li><li>Calls the $ADDCUST subroutine to validate and save input data.</li></ul><pre>Begsr $ADDCUST;<br>  DoW *In12 = *Off;<br>    IF CUSTID = *BLANKS;<br>      MSGNYA = &#39;Customer ID Cannot be Blank&#39;;<br>      EXFMT ERRMSG;<br>      EXFMT ADDCUST;<br>    ELSEIF CUSTDESC = *BLANKS;<br>      MSGNYA = &#39;Customer Description Cannot be Blank&#39;;<br>      EXFMT ERRMSG;<br>      EXFMT ADDCUST;<br>    ELSEIF CUSTNAME = *BLANKS;<br>      MSGNYA = &#39;Customer Name Cannot be Blank&#39;;<br>      EXFMT ERRMSG;<br>      EXFMT ADDCUST;<br>    ELSE;<br>      SMNID = CUSTID;<br>      Write CUSTOMER;<br>      CUSTID = *BLANKS;<br>      CUSTDESC = *BLANKS;<br>      CUSTNAME = *BLANKS;<br>      MSGNYA = &#39;Parm ID (&#39;+ %TRIM(SMNID) +&#39;) Added&#39;;<br>      EXFMT ERRMSG;<br>      Leave;<br>    EndIf;<br>  Enddo;<br>EndSr;</pre><p>Validates and saves the input data.</p><ul><li>Displays an error message if any field is blank.</li><li>Saves the record using the Write operation.</li></ul><p><strong>Subroutine </strong><strong>$UpdData</strong></p><pre>Begsr $UPDDATA;<br>  DoW *In12 = *Off;<br>    TmpID = CUSTID;<br><br>    TmpName = CUSTNAME;<br>    CHAIN CUSTID CUSTPF01;<br>    IF CUSTNAME = *BLANKS;<br>        MSGNYA = &#39;Customer Name Cannot be Blank&#39;;<br>        Exfmt ERRMSG;<br>        EXFMT EDTCUST;<br>    ELSE;<br>      If %Found;<br>        CUSTNAME = TmpName;<br>        SMNID = TmpID;<br>        Update CUSTOMER;<br>        MSGNYA = &#39;Parm ID (&#39;+ %TRIM(SMNID) +&#39;) Change&#39;;<br>        Exfmt ERRMSG;<br>        Leave;<br>      EndIf;<br>    ENDIF;<br>    if *In03 = *On;<br>      LeaveSr;<br>    EndIf;<br>  Enddo;<br>Endsr;</pre><p>Updates the data of an existing record.</p><ul><li>Uses CHAIN to find the record by ID.</li><li>Displays an error message if the customer name is blank.</li><li>Updates the record in the file using the Update operation.</li></ul><p><strong>Subroutine </strong><strong>$DelData</strong></p><pre>Begsr $DELDATA;<br>  If (ANSDEL = &#39;Y&#39; OR ANSDEL = &#39;y&#39;);<br>    TmpID = CUSTID;<br>    CHAIN CUSTID CUSTPF01;<br>    If %Found;<br>      SMNID = TmpID;<br>      Delete CUSTOMER;<br>      MSGNYA = (&#39;Parm ID (&#39;+ %TRIM(SMNID) +&#39;) Deleted&#39;);<br>      Exfmt ERRMSG;<br>    EndIf;<br>  ElseIf (ANSDEL = &#39;N&#39; OR ANSDEL = &#39;n&#39;);<br>    LeaveSr;<br>  EndIf;<br>  LeaveSr;<br>EndSr;</pre><p>Deletes a record from the physical file.</p><ul><li>Confirms deletion with the user using ANSDEL.</li><li>Deletes the record using the Delete operation if found.</li><li>Displays a success or error message based on the result.</li></ul><p><strong>6. The Full Code</strong></p><pre>     H<br>     FCUSTPF01  UF A E           K DISK<br>     FCUSTDSPF01CF   E             WORKSTN<br>     F                                     SFILE(DSPSFL:RRN#)<br>     D RRN#            S              4S 0<br>     D SMNID           S             10A<br>     D TmpID           S                   Like(CUSTID)<br><br>     D TmpNAME         S                   Like(CUSTNAME)<br><br>       /FREE<br>        Dow *In03 = *Off;<br>          Monitor;<br>            RRN# = 0;<br>            Exsr $ClearSr;<br>            Exsr $LoadSr;<br>            EXFMT DSPCTL;<br>            SELECT;<br>              When *In06 = *On;<br>                Exsr $ADDSR;<br>              Other;<br>                ReadC DSPSFL;<br>                If INPOPT = &#39;2&#39;;<br>                  DoW Not %Eof;<br>                    CUSTNAME = CUSTNAME;<br>                    Exfmt EDTCUST;<br>                    Exsr $UPDDATA;<br>                    INPOPT = &#39;&#39;;<br>                    Update DSPSFL;<br>                    ReadC DSPSFL;<br>                  EndDo;<br>                ElseIf INPOPT = &#39;4&#39;;<br>                  DoW Not %Eof;<br>                    Exfmt DELCUST;<br>                    Exsr $DELDATA;<br>                    INPOPT = &#39;&#39;;<br>                    Update DSPSFL;<br>                    ReadC DSPSFL;<br>                  EndDo;<br>                EndIf;<br>            EndSl;<br>          On-Error;<br>            MSGNYA = %char(%STATUS);<br>            DSPLY MSGNYA;<br>            *INLR = *ON;<br>            Return;<br>          EndMon;<br>        EndDo;<br>        *INLR = *ON;<br>        Begsr $LoadSr;<br>          RRN# = 0;<br>          If INPID = *Blanks;<br>            Setll *loval CUSTPF01;<br>            Read CUSTPF01;<br>            If %eof(CUSTPF01);<br>              RRN# = 1;<br>            Else;<br>              DoW Not %eof(CUSTPF01);<br>                  RRN# = RRN# + 1;<br>                  Write DSPSFL;<br>                  Read CUSTPF01;<br>              EndDo;<br>            EndIf;<br>          ELSE;<br>            TmpID = INPID;<br>            SETLL (TmpID) CUSTPF01;<br>            Chain (TmpID) CUSTPF01;<br>            If %Found(CUSTPF01);<br>                RRN# = RRN# + 1;<br>                Write DSPSFL;<br>            ELSE;<br>                MSGNYA = &#39;Customer ID (&#39;+ %TRIM(TmpID) +&#39;) Not Found&#39;;<br>                Exfmt ERRMSG;<br>            ENDIF;<br>          ENDIF;<br>        ENDSR;<br>        BegSr $ClearSr;<br>          *In50 = *Off;<br>          Write DSPCTL;<br>          *IN50 = *ON;<br>        EndSr;<br>        BegSr $AddSr;<br>          *In06 = *Off;<br>          CUSTID = *BLANKS;<br>          CUSTDESC = *BLANKS;<br>          CUSTNAME = *BLANKS;<br>          DoU *In12 = *Off;<br>            EXFMT ADDCUST;<br>            Exsr $ADDCUST;<br>            If *In12 = *On;<br>                *In12= *Off;<br>                Leave;<br>            EndIf;<br>          EndDo;<br>        EndSr;<br>        Begsr $ADDCUST;<br>          DoW *In12 = *Off;<br>            IF CUSTID = *BLANKS;<br>              MSGNYA = &#39;Customer ID Cannot be Blank&#39;;<br>              EXFMT ERRMSG;<br>              EXFMT ADDCUST;<br>            ELSEIF CUSTDESC = *BLANKS;<br>              MSGNYA = &#39;Customer Description Cannot be Blank&#39;;<br>              EXFMT ERRMSG;<br>              EXFMT ADDCUST;<br>            ELSEIF CUSTNAME = *BLANKS;<br>              MSGNYA = &#39;Customer Name Cannot be Blank&#39;;<br>              EXFMT ERRMSG;<br>              EXFMT ADDCUST;<br>            ELSE;<br>              SMNID = CUSTID;<br>              Write CUSTOMER;<br>              CUSTID = *BLANKS;<br>              CUSTDESC = *BLANKS;<br>              CUSTNAME = *BLANKS;<br>              MSGNYA = &#39;Parm ID (&#39;+ %TRIM(SMNID) +&#39;) Added&#39;;<br>              EXFMT ERRMSG;<br>              Leave;<br>            EndIf;<br>          Enddo;<br>        EndSr;<br>        Begsr $UPDDATA;<br>        DoW *In12 = *Off;<br>          TmpID = CUSTID;<br><br>          TmpName = CUSTNAME;<br>          CHAIN CUSTID CUSTPF01;<br>          IF CUSTNAME = *BLANKS;<br>              MSGNYA = &#39;Customer Name Cannot be Blank&#39;;<br>              Exfmt ERRMSG;<br>              EXFMT EDTCUST;<br>          ELSE;<br>            If %Found;<br>              CUSTNAME = TmpName;<br>              SMNID = TmpID;<br>              Update CUSTOMER;<br>              MSGNYA = &#39;Parm ID (&#39;+ %TRIM(SMNID) +&#39;) Change&#39;;<br>              Exfmt ERRMSG;<br>              Leave;<br>            EndIf;<br>          ENDIF;<br>          if *In03 = *On;<br>            LeaveSr;<br>          EndIf;<br>        Enddo;<br>        Endsr;<br>        Begsr $DELDATA;<br>          If (ANSDEL = &#39;Y&#39; OR ANSDEL = &#39;y&#39;);<br>            TmpID = CUSTID;<br>            CHAIN CUSTID CUSTPF01;<br>            If %Found;<br>              SMNID = TmpID;<br>              Delete CUSTOMER;<br>              MSGNYA = (&#39;Parm ID (&#39;+ %TRIM(SMNID) +&#39;) Deleted&#39;);<br>              Exfmt ERRMSG;<br>            EndIf;<br>          ElseIf (ANSDEL = &#39;N&#39; OR ANSDEL = &#39;n&#39;);<br>            LeaveSr;<br>          EndIf;<br>          LeaveSr;<br>        EndSr;<br>      /END-FREE</pre><p>After completing the development of the CRUD system (Create, Read, Update, Delete) on AS400 using Physical File (PF), RPGLE, and Display File (DSPF), the application is now ready for use. This system is designed to ensure efficiency and simplicity in managing data on the AS400 platform.</p><p>With a modular approach through subroutines, each function is designed to be easy to understand, implement, and maintain. The main components of this CRUD system include:</p><ul><li><strong>Reading Data (Read):</strong> Displays data from the physical file into a subfile, either all data or based on a specific ID.</li><li><strong>Adding Data (Create):</strong> Adds new data with strict validation to ensure all inputs are filled in correctly.</li><li><strong>Updating Data (Update):</strong> Updates existing data by searching for records using an ID.</li><li><strong>Deleting Data (Delete):</strong> Deletes data based on an ID with prior confirmation.</li></ul><p>If you have any further questions about implementing CRUD on AS400 or would like to discuss other development techniques, feel free to leave a comment below.</p><p>Additionally, you can connect with me on LinkedIn:<br>🔗 <a href="https://www.linkedin.com/in/mustofa-satria-tama-29522b1a4/"><strong>Mustofa Satria Tama</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9beb9dc0c3e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 3: Displaying Data with DSPF]]></title>
            <link>https://medium.com/@satriatama121/part-3-displaying-data-with-dspf-fa373bbbcb54?source=rss-f887281d0433------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa373bbbcb54</guid>
            <category><![CDATA[as400]]></category>
            <category><![CDATA[as400-system]]></category>
            <category><![CDATA[rpgle]]></category>
            <category><![CDATA[ibm]]></category>
            <category><![CDATA[ibm-i-series]]></category>
            <dc:creator><![CDATA[Satriatama]]></dc:creator>
            <pubDate>Sat, 28 Dec 2024 12:00:23 GMT</pubDate>
            <atom:updated>2024-12-28T12:00:23.701Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="AS400 Main Menu" src="https://cdn-images-1.medium.com/max/975/1*E0UrEsE7iDHl1jK_9kqS8w.png" /><figcaption>AS400 Main Menu</figcaption></figure><p>In the previous steps, we created the necessary members and built a database using Physical File (PF). To manipulate data, we can actually use the command UPDDTA FILE(FILENAME). However, the UPDDTA command is not very intuitive, especially when dealing with a large amount of data. Therefore, we need a more dynamic interface that allows for easier data manipulation.</p><p>In addition to data manipulation, AS400 also provides the WRKQRY command to display data from a file using the syntax WRKQRY () FILE(FILENAME). However, in this tutorial, we will create an interactive display to implement CRUD (Create, Read, Update, Delete) functionality for directly managing data. This display will also include conditional logic for validating input during data entry.</p><h4>Create SFL to Display List Data</h4><ol><li>Go to the WRKMBRPDM (Work with Members Using PDM) menu and Use option 17 to create a display file using SDA.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FMZmJmnkrETESdOlsoO-9w.png" /></figure><p><strong>2. Enter the SDA Screen</strong></p><p>Then, you will be directed to the <strong>Screen Design Aid (SDA)</strong>, a tool in AS400 used to design interactive screen layouts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZRPnesMGTMj1z3IpXd40gA.png" /></figure><p><strong>3. Create SFL and SFLCTL to Display Customer List Data</strong></p><ul><li>Select <strong>Option 1</strong> in <strong>SDA</strong> to create a new subfile (SFL).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xZhrHwF8-Izwm2rk-Dy-Yw.png" /></figure><ul><li>Add a new record named <strong>DSPSFL</strong> and choose the type <strong>SFL</strong>, then press Enter.</li><li>Next, you will be prompted to create a <strong>subfile control record</strong>. Enter the control record name as <strong>DSPCTL</strong>, then press Enter until you return to the SDA screen.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XYj92a-djI-yKtm4SD2-CQ.png" /></figure><ul><li>Once the records for <strong>SFL</strong> and <strong>SFLCTL</strong> are created, the next step is to edit these records. Editing them is similar to designing layouts using HTML and CSS in web programming.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4w0enYoPpfs9L21mhA-HrA.png" /></figure><p><strong>4. Edit DSPCTL</strong></p><p>In SFL, the <strong>DSPCTL</strong> record is used to display static data with a fixed length. This record is typically used for:</p><ul><li>Screen titles</li><li>Table headers</li><li>Option tags used on the screen</li></ul><p>To edit <strong>DSPCTL</strong>, enter option 12 in the SDA menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mQ0juURugEQt05WD50Z5mQ.png" /></figure><p>then be taken to a blank screen that you can edit as needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vFWA_Mr6Z1aaQMFTpi-UmA.png" /></figure><p>Here is an example of a <strong>DSPCTL</strong> screen filled with a title and table headers:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9WmZil8oGTlRFAKZ2zM6Uw.png" /></figure><p><strong>Explanation:</strong></p><p>The letter <strong>I</strong> in the table represents an <strong>input field</strong>.</p><p>To create an input field, use the command +I(10).</p><ul><li><strong>I</strong>: Indicates the field accepts input.</li><li><strong>(10)</strong>: Specifies the maximum input length as 10 characters.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*JRB16N87QAl-vmrIGBRbUg.gif" /></figure><p>The <strong>(+)</strong> symbol after creating the input field is used to name the field, such as “INPID”. Advanced DSPF editing and features will be discussed in a separate article.</p><p><strong>5. Edit DSPSFL</strong></p><p>Unlike <strong>DSPCTL</strong>, which is used for static data, <strong>DSPSFL</strong> is used to display dynamic data with varying lengths. For example, a customer list where the number of entries changes over time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-AxUYg3ywvEupHg--_nn7w.png" /></figure><p>To edit <strong>DSPSFL</strong>, enter option 12 in the SDA menu. Once inside, the screen will display the <strong>DSPCTL</strong> you created earlier. You can add new elements to accommodate dynamic data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZGz-raKgC3jQZRbYbrrKqQ.png" /></figure><p>Here’s an example of the edited <strong>DSPSFL</strong>:</p><ul><li><strong>Symbol </strong><strong>I</strong>: Represents input fields.</li><li><strong>Symbol </strong><strong>O</strong>: Represents output fields.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pW5uD9TnLMuyDEKRoGTUkA.png" /></figure><p><strong>Creating Input and Output Fields:</strong></p><ul><li>Use +I or +O to add input or output fields.</li><li>Specify the field length, such as +I(10) for a 10-character input field,</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*NzE80dS5ZlcU1wAmaEvYuw.gif" /></figure><p><strong>Naming Fields:</strong></p><ul><li>Add the symbol <strong>(?)</strong> in front of i or o to assign a name to the field, such as ?CUSTID.</li><li>These names are essential for identifying data during runtime.</li></ul><p>For further understanding, you can refer to animations or GIFs that illustrate these steps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*mjJWPEL2_yeTlSMB7humJA.gif" /></figure><h4>Creating Records for Adding and Editing Customer Data</h4><p>After completing <strong>DSPSFL</strong> and <strong>DSPCTL</strong>, the next step is to create records for adding and editing customer data. The records are named <strong>ADDCUST</strong> for adding data and <strong>EDTCUST</strong> for editing data.</p><ol><li><strong>ADDCUST</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2BlmJaBun3eS7GYUhnQoPg.png" /></figure><p>Once the <strong>ADDCUST</strong> file is created, you need to edit its layout as required. Below is an example of an edited <strong>ADDCUST</strong> screen:</p><ul><li>Add input fields for each piece of information needed, such as <strong>Customer ID</strong>, <strong>Customer Key</strong>, and <strong>Customer Description</strong>.</li><li>Be sure to name each field using the method previously explained.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TSm_xPQMqTm66wM209sX5g.png" /></figure><p><strong>Field names used in this example:</strong></p><ul><li>ADCUSTID: For Customer ID.</li><li>ADCUSTKEY: For Customer Key.</li><li>ADCUSTDESC: For Customer Description.</li></ul><p><strong>2. EDTCUST</strong></p><p>In <strong>EDTCUST</strong>, you create fields with the <strong>Both</strong> type to display existing data while allowing updates for new data. However, only <strong>Customer Description (CUSTDESC)</strong> can be edited, while other fields like <strong>Customer ID</strong> and <strong>Customer Key</strong> will be of type <strong>Output</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_cG8lOO411--fE987rpcnQ.png" /></figure><p><strong>Steps to create EDTCUST:</strong></p><ul><li>The process is similar to creating <strong>ADDCUST</strong>.</li><li>The difference is that for <strong>CUSTDESC</strong>, use the <strong>Both</strong> field type so it displays existing data and allows editing.</li><li>For <strong>Customer ID</strong> and <strong>Customer Key</strong>, use the <strong>Output</strong> type so the data cannot be changed.</li></ul><p><strong>How to create a Both-type field:</strong><br>The process is the same as creating input or output fields, but use the following configuration:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jq_WQSPQwQPr8P9cTggvWw.png" /></figure><p>Explanation:</p><ul><li>The field accepts input (+I) with a length of 10 characters.</li><li>The field also outputs (+O) existing data for display.</li></ul><h4>Buat Window untuk pop up error message</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1KxF20hWgTSuIOvuUurSMg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E3Ye1dkoB-PtEO0f_-DayQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NtLWyVw9Ic4ucjnVpmVYhw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L-5ZKki6m77SvKe8PU-M6A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_jCVAj_pIogrQqgUBoGNPQ.png" /></figure><p>Untuk nama dari input field tersebut adalah ANSDEL</p><h4>Buat Window untuk confirmation message</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*upjd10yWeBcKlPbkxYcE_w.png" /></figure><p>Lakukan hal yang sama seperti dengan delete namun dengan isi seperti ini</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mXguxYAN6h92OLV0OSxDfQ.png" /></figure><p>Untuk nama field dari output message tersebut adalah MSGNYA</p><h4>Compile program DSPF</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fagwOGC5cL97rZwkDj2IZw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa373bbbcb54" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 2: Building the Database with PF]]></title>
            <link>https://medium.com/@satriatama121/part-2-building-the-database-with-pf-e647ff5d85ac?source=rss-f887281d0433------2</link>
            <guid isPermaLink="false">https://medium.com/p/e647ff5d85ac</guid>
            <category><![CDATA[as400]]></category>
            <category><![CDATA[ibm-i-series]]></category>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[pf]]></category>
            <category><![CDATA[rpgle]]></category>
            <dc:creator><![CDATA[Satriatama]]></dc:creator>
            <pubDate>Fri, 27 Dec 2024 07:45:47 GMT</pubDate>
            <atom:updated>2024-12-27T07:45:47.429Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="AS400 Main Menu" src="https://cdn-images-1.medium.com/max/975/1*E0UrEsE7iDHl1jK_9kqS8w.png" /><figcaption>AS400 Main Menu</figcaption></figure><p>In Part 1, we created the necessary file members to build a CRUD application. Now, in Part 2, we will focus on creating a table in the database using a Physical File (PF) and designing a user interface in AS400 using a Display File (DSPF).</p><p>Before proceeding with the details, let’s first open the file member using the <strong>WRKMBRPDM</strong> command.</p><h4>Steps to Create a Database Table Using PF</h4><ol><li><strong>Select Option 2 to Edit the PF</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pH_M7lfZ1W_FumrDa1KRrA.png" /><figcaption>Image 1. Screen WRKMBRPDM</figcaption></figure><ul><li>On the <strong>WRKMBRPDM</strong> screen, various options allow you to perform actions on the selected file.</li><li>Use <strong>Option 2</strong> to edit the PF (Physical File) that was created earlier.</li></ul><p><strong>2. Define the Record</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lnoj3i0GB3Me_pSIDlhsNA.png" /><figcaption>Image 2. Define Record</figcaption></figure><ul><li>Once the editor opens, define the structure of the record. Record field is a like Table name.</li><li>A record represents a single row in the table, and it is essential to specify the format of the data it will hold.</li></ul><p><strong>3. Add the Required Fields</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2RUNoSDkPmQdSlIPF14hRQ.png" /><figcaption>Image 3. Define Field</figcaption></figure><p>Define each field in the record by specifying:</p><ul><li>Field Name (e.g., CUSTID, CUSTNAME, CUSTDESC)</li><li>Field Length</li><li>Data Type (e.g., character, numeric, etc.)</li><li>Decimal Places (if applicable)</li></ul><p><strong>Tips for Adding the Required Fields</strong></p><p>To simplify the process of defining fields in the PF, you can press <strong>F4</strong> on the desired line. This will open a parameter screen where you can input the necessary details for the field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UZQDkJcaDziim3h1elyGkw.png" /><figcaption>Image 4. F4 for defining fields</figcaption></figure><p>If you are unsure about the required fields or their format, press <strong>F1</strong> to view help documentation, which provides details about the fields needed for the PF declaration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1FGAoKbvAIERaDrcdDiGWg.png" /></figure><p><strong>3. Specify the Key Field(s)</strong> <em>(Important)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ib9NO9K0XaTcfMV5YuJ1wA.png" /><figcaption>Image 4 Define Key Field</figcaption></figure><ul><li>Determine and define the key field(s) for the table.</li><li>The key is critical for uniquely identifying each record in the table.</li></ul><p><strong>4. Save and Compile</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PJ7O1fNFMuhlbDZ_J1_dng.png" /></figure><p>After defining the record, fields, and key, save the changes. To save the changes made to the PF, press <strong>F3</strong>. When prompted, change the <strong>Change/Create Member</strong> option to <strong>Y</strong>, then press <strong>Enter</strong> to confirm and save your work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N428P5C0DSpXNLnLc0bXHg.png" /></figure><p>After successfully saving the PF member, compile it by selecting <strong>Option 14</strong> on the <strong>CUSTPF01 </strong>screen and pressing <strong>Enter</strong>.</p><p>If the message <strong>custpf01 created in library [libraryname] </strong>appears, it indicates that the PF has been successfully compiled and is ready for use.</p><p><strong>5. Check PF data</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uFIt2sAoLYtSfnVAMyCxMg.png" /></figure><p>To check if the PF has been compiled correctly, you can use the <strong>RUNQRY</strong> command. The <strong>RUNQRY</strong> command is used to view the records in the PF table you have created. If the table structure and data are displayed as expected, the PF has been compiled successfully. For example: <strong>RUNQRY () CUSTPF01</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LZocZ30Kzi-NHg4APBHa2w.png" /></figure><p>The image above displays the report generated by the <strong>RUNQRY</strong> command. As shown, the table currently has no data, and only the table headers are visible. This confirms that the Physical File (PF) has been successfully created and compiled, but it does not yet contain any records.</p><p><strong>6. Add PF data</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7LBVYAfL3PAjMuDB3Rh_tA.png" /></figure><p>To add data directly to the table within the PF, you can use the <strong>UPDDTA</strong> command. The <strong>UPDDTA</strong> command allows you to insert and update data directly in the PF. This method is useful for quickly populating the table with initial data or making small updates without using a program. After running the command, a screen will appear where you can manually input or modify the records in the table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NfgfqYmAQvCGW_3kUwgfhg.png" /></figure><p>The image above shows the <strong>UPDDTA</strong> screen, which is used to insert and update data in the PF.</p><ul><li>To <strong>insert new data</strong>, press <strong>F9</strong> to open a blank line for entering a new record.</li><li>To <strong>update existing data</strong>, navigate to the desired record and press <strong>F11</strong> to edit the fields.</li></ul><p>These shortcuts make it easy to manage data directly within the PF table. After completing your changes, be sure to save them before exiting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G0yhAW0non6EqnNzrcda8w.png" /></figure><p>After adding or modifying data using the <strong>UPDDTA</strong> command, a confirmation screen will appear. This screen allows you to decide whether to save the changes or not.</p><p>The confirmation screen also displays a summary of the changes made, including:</p><ul><li>The number of records <strong>added</strong></li><li>The number of records <strong>updated</strong></li><li>The number of records <strong>deleted</strong></li></ul><p>To save the changes, confirm by selecting <strong>Yes</strong> (Y). If you do not wish to save the changes, select <strong>No</strong> (N) to discard them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*upUvHzjNEJeRrhZBvLRqBA.png" /></figure><p>If the changes were successfully saved, you can verify the data by using the <strong>RUNQRY</strong> command again. This will display the table with the updated records, allowing you to confirm that the data has been successfully added or modified. The previously empty table will now show the newly inserted or updated rows.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e647ff5d85ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 1: Setting Up Source File, RPGLE, DSPF, and PF for CRUD in AS400]]></title>
            <link>https://medium.com/@satriatama121/part-1-setting-up-source-file-rpgle-dspf-and-pf-for-crud-in-as400-e9926f58ffb7?source=rss-f887281d0433------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9926f58ffb7</guid>
            <category><![CDATA[crud]]></category>
            <category><![CDATA[ibm-i-series]]></category>
            <category><![CDATA[rpgle]]></category>
            <category><![CDATA[as400]]></category>
            <dc:creator><![CDATA[Satriatama]]></dc:creator>
            <pubDate>Fri, 27 Dec 2024 01:51:57 GMT</pubDate>
            <atom:updated>2024-12-27T02:28:26.423Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="AS400 Main Menu" src="https://cdn-images-1.medium.com/max/975/1*E0UrEsE7iDHl1jK_9kqS8w.png" /><figcaption>AS400 Main Menu</figcaption></figure><h3>Introduction</h3><p>Amid the rapid advancement of modern technology, the AS400 continues to play a pivotal role in various industries, especially the banking sector. Its unmatched stability, security, and scalability have allowed it to remain relevant even in today’s landscape.</p><p>This article provides a step-by-step tutorial to create CRUD features using DSPF, RPGLE, LF, and PF on the AS400. The goal is to make the process straightforward and easy to follow, even for those who are new to the platform.</p><p>Here’s a preview of the app we’ll build:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*gUPo1XU_JGR8bNxmPaPMUw.gif" /></figure><h4>Step 1: Creating a Source File</h4><p>A source file in AS400 serves as a repository for storing program definitions or source code. This includes RPGLE programs, physical files (PF), logical files (LF), or display files (DSPF). To create a source file, use the <strong>CRTSRCPF</strong> command.</p><ol><li>Using the <strong>CRTSRCPF</strong> Command</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*pXj7kOPRlf5qVg7fhhG3qg.png" /><figcaption>Image 1. command CRTSRCPF</figcaption></figure><p>2. Open the Parameter Screen with F4</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*yRvSqXw4VrCxwk9Jy7ZHVQ.png" /><figcaption>Image 2. Screen CRTSRCPF</figcaption></figure><p>In the example image above, create a file name that represents the program you are going to develop and add a description to describe the program.</p><p>Once the file has been successfully created, open the PDM screen and add a member file that will store the program’s source code.</p><h4>Step 2: Accessing the PDM Member</h4><ol><li>Use the <strong>WRKMBRPDM</strong> command.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*Qj37Ss3c2_8CP_Y_JIPApA.png" /><figcaption>Image 3. command WRKMBRPDM</figcaption></figure><p>2. Then press F4 and enter the name of the source file that was created earlier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*5aM8MK0kBLtZ9A5l2CD9EA.png" /><figcaption>Image 4. Screen WRKMBRPDM</figcaption></figure><p>3. Screen Work With member Using PDM</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*gjD1nMLqu1DiYGRsJ0dzdQ.png" /><figcaption>Image 5. Display Work with Members Using PDM</figcaption></figure><h4>Step 3: Use STRSEU to Create a Member</h4><p>After accessing the PDM screen using the <strong>WRKMBRPDM</strong> command, press <strong>F6</strong> to create a new member.</p><ul><li>On the screen that appears, enter the member name as needed, the source type to be used (e.g., RPGLE, PF, or others), and a brief description of the member.</li><li>Once all the information is filled in, press <strong>Enter</strong> to save and begin editing the member.</li></ul><p>This member will serve as the space for writing the code or program definitions to be created.</p><ol><li>Creating an RPGLE Member File</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*_Ot5GsEbwkMatuq4pZ1CVw.png" /><figcaption>Image 6. Screen STRSEU</figcaption></figure><p>To Creating an RPGLE member file, follow these steps:</p><ul><li>After pressing <strong>F6</strong> to create a new member, In the “Member Name” field enter a name for your new member (for example, CUST01).</li><li>In the “Source Type” field, select <strong>RPGLE</strong> from the list of source types.</li><li>Optionally, add a brief description of the member in the “Description” field (e.g., “MAIN PROGRAM CUSTOMER CRUD”).</li></ul><p>2. Buat File Member PF</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*7Fvj_i0hflQcLjOo9rn6Lw.png" /><figcaption>Image 7. Screen STRSEU</figcaption></figure><p>To create an <strong>PF </strong>member file, follow these steps:</p><ul><li>After pressing <strong>F6</strong> to create a new member, In the “Member Name” field enter a name for your new member (for example, CUSTPF01).</li><li>In the “Source Type” field, select <strong>PF </strong>from the list of source types.</li><li>Optionally, add a brief description of the member in the “Description” field (e.g., “FILE PF UNTUK CUSTOMER”).</li></ul><p>3. Buat File Member DSPF</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*gc9WOZxnfDqDQq347KjW9g.png" /><figcaption>Image 8. Screen STRSEU</figcaption></figure><p>To create an DSPF member file, follow these steps:</p><ul><li>After pressing <strong>F6</strong> to create a new member, In the “Member Name” field enter a name for your new member (for example, CUSTDSPF01).</li><li>In the “Source Type” field, select <strong>DSPF </strong>from the list of source types.</li><li>Optionally, add a brief description of the member in the “Description” field (e.g., “TAMPILAN CUSTOMER MENU”).</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9926f58ffb7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>