RPGLE Questions and Answers

Recent IT Questions

121 - 140 of 402

CLLE program

I am new to AS400.I just learnt CLLE and i am facing the problem with the parameter that send from a RPGLE pgm to a CLLE pgm. The first pgm is to prompt the user to key in the date which is a numeic field. The coding for the first pgm is : FWKCFFM CF E WORKSTN * Parameter List...

View Answer   |  Oct 29 2008  4:43 PM GMT
RPGLE, CLLE
asked by Cev

  105 pts.

operation code-occur

In what condition we have to use occur?what is the use of occur(Set/Get Occurrence of a Data Structure )?

View Answer   |  Oct 23 2008  7:22 AM GMT
RPG, RPGLE, Operation Code
asked by Cev

  105 pts.

diff. between two date

Hello guys, I wanna do a one pgm which is find out date diff. between two date in rpg /400. Actually i did this in rpgiv...but now i want to do it in rpg/400. can somebody provide me a exact logic behind this.. Thanx in advance.....

View Answer   |  Oct 11 2008  11:50 AM GMT
AS/400, RPGLE, RPG/400
asked by Swapniln

  35 pts.

passing parameters via a datastructure to and from a procedure

Can anyone provide a simple example of passing data via a data structure from one procedure to another? I would like to call a procedure to post data to a transaction file using a data structure to pass the data.

View Answer   |  Oct 10 2008  6:40 PM GMT
RPGLE, iSeries RPG programming, A/400
asked by Docorp

  15 pts.

Connect to Unix from iSeries

I am trying to connect to EDW data mart on a Unix server from an SQLRPGLE pgm using the embedded SQL CONNECT TO code. I am getting SQLCOD = -000000113 when in debug and the connection fails. I have the code I can send in an email if you want? BCL2008

Answer Question   |  Oct 10 2008  2:57 PM GMT
SQL, RPGLE, Unix
asked by BCL2008

  5 pts.

Switch between two display files

I M USING A RPGLE PRGM IN WHICH THERE ARE 2 SCREENS.1 CONTAINS ALL THE RECORDS OF CUST ,IN WHICH 1 CAN USE OPT 2OR 4 FOR UPDATE AND DELETE.BOTH THE FUNCTIONS ARE WORKING BUT WHEN UPDATE SCREEN OPENS I WANT TO GO BACK TO MAIN SCREEN WHICH CONTAINS ALL THE RECORDS.SO PLZ TELLL ME HOW TO DO IT.

View Answer   |  Oct 10 2008  7:04 AM GMT
RPG, RPGLE
asked by 03

  15 pts.

How do you put the system date into *ISO format?

Update an *ISO date in RPGLE?

View Answer   |  Oct 9 2008  5:51 PM GMT
RPGLE, ISO
asked by MA

  5 pts.

iSeries AFPDS printing to an IP printer is not supporting images to IP printer.

I am attempting to eliminate several pre-printed forms by using AFPDS, however I am running into a problem printing images. I first encountered the problem in trying to shade boxes. After research revealed that box shading is actually an image, I tried adding our company logo, confirming that I am...

View Answer   |  Oct 9 2008  5:41 PM GMT
iSeries, RPGLE, TCP/IP
asked by Len

  5 pts.

Can the parameter's name in parameter list same with the field name in physical file?

Can the parameter's name in parameter list same with the field name in physical file?

View Answer   |  Oct 7 2008  6:37 AM GMT
RPGLE, Parameter list -AS400
asked by Cev

  105 pts.

Is there a way to automate the 'Receive Files from Host' command'?

I need to automatically run the Receive Files from Host command after business hours. Is there a CLP command to accomplish this with an example? Thanks, LWK

View Answer   |  Sep 18 2008  12:31 AM GMT
CLP, RPGLE, VB
asked by Lwk

  25 pts.

How can I define a flat file in RPGLE?

How can I define a flat file in RPGLE?

View Answer   |  Sep 16 2008  10:39 PM GMT
RPG, RPGLE, Flat files
asked by Claudiarce

  5 pts.

RPGLE arrays

Please provide me the solution or at least a hint to this problem. Lets Suppose I have an array having 4 elements ( A, B, C, D). I would like to have all the possible combination of the 4 elements with no repetition (i.e. in mathematical terms 4C1 + 4C2 + 4C3 + 4C4 = 15). How can we do this in...

View Answer   |  Sep 16 2008  2:58 PM GMT
RPG, Arrays, RPGLE
asked by BrentSheets

  6535 pts.

reason for getting defaults value?

i have a file p1 (pf) and one one display file d1 whose fields are taken as reference (using f10) from p1 when i write a simple rpgle pgm to write records from display file in to file p1(pf) using following code: fp1 uf a e disk fd1 cf e workstn ...

View Answer   |  Sep 14 2008  6:31 AM GMT
RPG, RPGLE, PF/LF
asked by 6r

  155 pts.

CPYTOIMPF 'To File' problem

The following command: ===> CPYTOIMPF FROMFILE(LTCLIB/WPELG01P) TOFILE(LTCLIB/WPELGCSV) MBROPT(*REPLACE) STRDLM(*NONE) produces error To-file WPELGCSV in LTCLIB not allowed. The explanation says the To file must be an externally defined PF, which it is. I need to remove the double quote...

View Answer   |  Sep 10 2008  5:22 PM GMT
RPGLE, CPYTOIMPF, CL
asked by Lwk

  25 pts.

Positioning Cursor in Subfile

I can use the SFLRCDNBR(CURSOR) keyword to position the cursor on the correct subfile line that I want, but can I then get it to position on a particular field ? SFLRCDNBR(CURSOR) defaults to the first input capable field. DSPATR(PC) seems to override the SFLRCDNBR keyword; therefore I lose the...

View Answer   |  Sep 9 2008  4:28 PM GMT
RPGLE, SFLRCDNBR, DDS
asked by Modiyooch

  370 pts.

AS400-DML

I have created one table using CREATE TABLE Command and have added some datas in that table.i have defined that table RPGLE's File specification. FEmployee IF A E Disk . While compiling i am getting RNF2109 Error. Please help me to rectify this error?

View Answer   |  Sep 1 2008  8:38 AM GMT
RPGLE, DML, RNF2109 Error
asked by Rajeshece

  480 pts.

READE,*LOVAL SETLL

In what condition we have to use ,READE,READ,REAC and *LOVAL SETLL?

View Answer   |  Aug 27 2008  1:17 AM GMT
RPG, RPGLE, READC
asked by Cev

  105 pts.

Determine TCP port used by a connection.

We have an application that has our iSeries(AS/400) connect to a remote IP address and port. If we have to end the application and restart it (IPL, error, end/start subsystem) the iSeries keeps the connection open. AFter the application is restarted, the TCP connections show two connections to the...

View Answer   |  Aug 25 2008  7:29 PM GMT
TCP, RPGLE, iSeries networking
asked by LHrabar

  95 pts.

Message status

Hi, Can any one please tell me what are all the different job statuses in as400 like MSGW,CNDW,EVTW,DEQW,DLYW and what do they actually stand for?

View Answer   |  Aug 21 2008  3:53 PM GMT
AS/400, RPGLE, CLLE
asked by Knowledgeseekerone

  20 pts.

Embedded SQL in RPG ILE

I want to write a program that will retrieve any field(s)from any file on the iSeries. The only part I haven't figured out is how to code the fetch statement to populate variables that aren't known until execution time

View Answer   |  Aug 19 2008  11:15 PM GMT
iSeries, RPG, RPGLE
asked by Jeffm

  65 pts.

121 - 140 of 402