RPG/400 Questions and Answers

Recent IT Questions

41 - 60 of 145

rpg/400

below program write a records to xodstsf in two times.... i am not sure where i missing... can you advice. FWDRPIK CF E WORKSTN FXODSTSF O E DISK FTFL01 UF E K DISK ...

View Answer   |  Apr 1 2009  1:39 PM GMT
RPG, xodstsf, RPG/400
asked by Askt

  265 pts.

SETLL

Hi I have a set of records whose key has duplicates. Can SETLL be used to read these set of records.I need this to be done as part of a loop.

View Answer   |  Apr 1 2009  10:08 AM GMT
RPG/400, SETLL, Set Lower Limit
asked by Flint

  20 pts.

Comparing ID and password in an AS/400 login screen

Dear friends iam quite new to this AS/400 . could you please let me know how to compare the id and password in a login screen..how to connect the cl program and display file to perform login operation .Do i need to write rpg code for that ..Pls help me out with this code in detail ...

View Answer   |  Mar 30 2009  6:39 AM GMT
RPG/400, CL/400, AS/400 login
asked by RNB

  5 pts.

Physical File Without Key

Hi guys, Currently i'm using RPGLE language. If i have a Physical File that without key, How am i going to set my pointer. I can't CHAIN,SETLL and SETGT as well. In order to use them, u need have a key. Am i rite? Is there any idea to solve this matter? Thanks!!!!

View Answer   |  Mar 23 2009  9:12 AM GMT
RPGLE, Physical File, SETLL
asked by SoulReaper

  20 pts.

RPG/400

i have a physical file name with length of 10 same file i need to declare in rpg/400 but here accepting only 8 length so any way to overcome....

View Answer   |  Mar 19 2009  10:45 AM GMT
RPG/400, Physical File, RPG
asked by Askt

  265 pts.

Change AS/400 Library List for a Batch Job

HI, Is there a way by which we can override the Library List for a batch job, when the job is active?

View Answer   |  Mar 6 2009  9:48 AM GMT
RPGLE, RPG/400, AS/400 batch jobs
asked by PRIYAS

  40 pts.

Result fields in RPG/400 vs ILERPG

When coding in RPG400, the result of a calculation can be larger than the size of the result field, like this: D Fld1 s 2 0 Inz(20) D Fld2 s 2 0 Inz(10) D Fld3 s 2 0 Inz ...

View Answer   |  Feb 27 2009  5:34 PM GMT
RPG/400, ILERPG, RPGILE
asked by TopKat

  125 pts.

SFLRCDNBR

I want to know the use of SFLRCDNBR Keyword used in Subfile . I also want any sample Code of how it is handled in the RPGLE Program?

View Answer   |  Feb 27 2009  11:06 AM GMT
SFLRCDNBR, Subfile, Subfile Record Number
asked by C.naveen09

  50 pts.

Mixed record format Subfiles

I've been writing standard subfiles for a while now but I've seen some where, to me, it looks like the subfile has a mixed record format - i.e. a header and then a variable number of detail lines. (The fields are of different length and position in the header and detail lines). I'm writing an...

View Answer   |  Feb 27 2009  10:47 AM GMT
RPG, RPGLE, Subfile
asked by Dave59

  45 pts.

How to add one Module to the existing Service Program

Hi, I want to add or append one new module called 'C' to the already existing service program(SRVPGM) For Example: I have one service program called SRVPGM consits of 2 Modules are A, B. Now i want to add one new Module called 'C' to SRVPGM. how can i do this ?

View Answer   |  Feb 26 2009  12:18 AM GMT
RPGLE, *SRVPGM, AS/400 administration
asked by Mohan K

  470 pts.

Bad performance in call command in RPGLE

We are facing a bad performance issue when RPGLE pgm A is calling RPG pgm B. Pgm A is reading a file as primary that contains 1000000 records and for every record calls pgm B that is doing 1 chain to a file and if it's sucessfully updates another file and then RETURN (not with SETON LR) to pgm A...

View Answer   |  Feb 15 2009  12:57 AM GMT
RPGLE, RPG program performance, SETON
asked by SAMANDI

  75 pts.

(AS/400 - RPG(ILE)) Date-Conversion

Date-Conversion --------------------- I have a date in 7-digit format in '1YYMMDD' format. e.g 1071231 for representing 31st of December 2007.(where '107' represents 2007; 12 represents December & 31 represents 31st Day of the month). Now i need to convert this into '31/12/2007' (European...

View Answer   |  Feb 9 2009  11:22 AM GMT
RPG/400, RPGILE, AS/400 development
asked by Svankipu

  50 pts.

Cl program that reads a datafile for ftp

i need an example of cl program that reads a file containing ftp commands and executes the commands in their arrival sequence. thanks.

View Answer   |  Feb 6 2009  5:06 PM GMT
CL, RPG/400, FTP
asked by Lacag

  95 pts.

Unable to over ride a PF member

Hi, I made a cl program and in it I over ride a pf member, clrpfm then call my rpgle program. I can't write on my member but instead it writes on the primary member and reads it. seems the member that is used is the the primary member and not the member that I over rides.

View Answer   |  Feb 6 2009  3:43 AM GMT
Physical File, CL/400, CLRPFM
asked by Ayterrobias

  5 pts.

How to convert system date to other format using RPGILE

please advice how can convert system date to other format using rpgile.

View Answer   |  Feb 4 2009  11:20 AM GMT
RPGILE, System date, RPG/400
asked by Askt1

  105 pts.

DSPF

I have a field in the display file of length 13 CHAracters long. The first 4 characters contains the year, folloed by a hyphen, Next 2 characters contain the location(alphanumeric) followed by hyphen Last 5 characters contains numeric. How do i declare in the display file. when i enter a value in...

View Answer   |  Feb 3 2009  8:22 AM GMT
DSPF, RPG/400, Display File
asked by Deepz

  30 pts.

OPNQRYF

I have 4-fileds on Display File like frdiv(zoned),todiv(zoned),frpr(char),topr(char) all the fields are of size 2 only. I am using a "OPNQRYF" to filter the records froma Physical file (pfdiv), it containes 1,25,000 records . Through this openqryf all the selected records I will copy to a file...

View Answer   |  Feb 1 2009  2:21 PM GMT
CL/400, OPNQRYF, Open Query File
asked by Khadar

  90 pts.

RPG/400 - How to send spoolfiles to different users

Please advice how to send spoolfiles to different users.

View Answer   |  Jan 19 2009  7:05 AM GMT
RPG/400, Spool files, RPG
asked by Askt1

  105 pts.

RPG/400 - CL command to search a record like CHAIN opcode in RPG

Please advice we have any command there in CL to search or find a record like CHAIN opcode in RPG.

View Answer   |  Jan 19 2009  6:43 AM GMT
RPG/400, CL, CHAIN
asked by Askt1

  105 pts.

RPG/400 - How to check if record is reaching end of the file in CL

Please advice me how to chck record is reaching end of the file in CL.

View Answer   |  Jan 19 2009  6:39 AM GMT
RPG/400, CL, AS/400 Control Language
asked by Askt1

  105 pts.

41 - 60 of 145