Format name | Date-format parameter | Date format and separator | Field length | Example |
Job default | *JOB | |||
Month/Day/Year | *MDY | mm/dd/yy | 8 | 06/21/90 |
Day/Month/Year | *DMY | dd/mm/yy | 8 | 21/06/90 |
Year/Month/Day | *YMD | yy/mm/dd | 8 | 90/06/21 |
Julian | *JUL | yy/ddd | 6 | 90/172 |
International Standards Organization | *ISO | yyyy-mm-dd | 10 | 1990-06-21 |
IBM® USA Standard | * | mm/dd/yyyy | 10 | 06/21/1990 |
IBM European Standard | *EUR | dd.mm.yyyy | 10 | 21.06.1990 |
Japanese Industrial Standard Christian Era | *JIS | yyyy-mm-dd | 10 | 1990-06-21 |
READ READ is one of the most used Opcodes in RPGLE. As the name suggests main purpose of this Opcode is to read a record from Database file. What are the different READ Opcodes? To list, Below are the five Opcodes. READ - Read a Record READC - Read Next Changed Record READE - Read Equal Key Record READP - Read Prior Record READPE - Read Prior Equal Record We will see more about each of these later in this article. Before that, We will see a bit about SETLL/SETGT . SETLL (Set Lower Limit) SETLL accepts Key Fields or Relative Record Number (RRN) as Search Arguments and positions the file at the Corresponding Record (or Next Record if exact match isn't found). SETGT (Set Greater Than) SETGT accepts Key Fields or Relative Record Number (RRN) as Search Arguments and positions the file at the Next Record (Greater Than the Key value). Syntax: SETLL SEARCH-ARGUMENTS/KEYFIELDS FILENAME SETGT SEARCH-ARGUMENTS/KEYFIELDS FILENAME One of the below can be passed as Search Arguments. Key Fiel
Comments
Post a Comment