Programming Languages Questions and Answers

Recent IT Questions

41 - 60 of 83

Creation of logical file

Can I create a logical file in some other library that is different from the physical file's library on which the Logical is based.. OR both PF and LF need to exist in the same library??

View Answer   |  Jun 16 2005  2:05 AM GMT
Programming Languages, RPG
asked by a1b2c333

  0 pts.

Read operation on a subfile

Hi, Can we use the READ opcode on a subfile as we do on a database file? thanks

View Answer   |  Jun 15 2005  6:37 AM GMT
Programming Languages, RPG
asked by a1b2c333

  0 pts.

Connect to AS/400 from a PC and run User Profiles Initial Program

I'd like to be able to have a user connect via FTP, ect. from a PC to our AS/400, login, and have the user profiles inital program run immediately. We've tried several options, but the initial program doesn't run unless a user signs on to a Session. This is not an option. Can you help? Thanks

View Answer   |  Jun 8 2005  10:19 AM GMT
AS/400, OS/400, iSeries
asked by sbach5

  0 pts.

Download report from iSeries to PC with proper page break

I currently use Client Access Ooperations Navigator to download a report to my PC by dragging the output file onto my PC desktop. This correctly produces a report that I can print from my PC but it does not put in the page breaks that existed on the iSeries. Is there a way to keep the same page...

View Answer   |  May 10 2005  10:31 PM GMT
AS/400, Programming Languages, RPG
asked by acjitk

  0 pts.

error message RNX9001

I have a RPGILE which input X and Y and return Z as (X to the power of Y) eg X = 2 and Y = 2 then Z = 4 I define X, Y and Z as 30P9 However when I can this function with parmeter X= 10 and Y = 10 Error occur like this : Can anyone tell me how to fix it or why error come out ? Many thanks ILE...

View Answer   |  May 3 2005  5:27 AM GMT
Programming Languages, RPG
asked by vlui00

  0 pts.

Sub-pgm is to calculate X to the power of Y and then return Z. (using RPGIV / RPGILE)

Hello Because I am new to RPGIV (existing using RPGIII) . Recently I need to write a sub-program using RPGIV (or RPGILE ? ). This sub-program will receive two parmerter (X , Y) and output one parmeter (Z) (which are in numeric format - BTW what is the max precision for numeric format in RPGIV /...

View Answer   |  Apr 22 2005  1:39 AM GMT
Programming Languages, SQL, COBOL
asked by vlui00

  0 pts.

Load All - Using Position To

Can I use a Position To field in a Load all subfile. I don't want to clear the subfile every time as we do in a single Page subfile. How will the Page up and Page down features be affected if I use a Position to in a Load All subfile? Any help would be appreciated.

View Answer   |  Apr 20 2005  8:22 PM GMT
Programming Languages, RPG
asked by a1b2c333

  0 pts.

Anyone know how RPG handle the calculation of n X where X & n are fraction (decimal number) ? if no, can RPG IV do ?-2

Anyone know how RPG handle the calculation of n X where X & n are fraction (decimal number) ? if no, can RPG IV do ?

View Answer   |  Apr 19 2005  9:14 PM GMT
Programming Languages, C, RPG
asked by vlui00

  0 pts.

Anyone know how RPG handle the calculation of n X where X & n are fraction (decimal number) ? if no, can RPG IV do ?

Anyone know how RPG handle the calculation of n X where X & n are fraction (decimal number) ? if no, can RPG IV do ?

View Answer   |  Apr 19 2005  9:12 PM GMT
Programming Languages, C, RPG
asked by vlui00

  0 pts.

Calculation of (num) 1/n (square root) using RPG

Do any one know how to handle below formula using RPG or else method which can be implement on AS400 RPG program : The formula is (number ) 1/n 1/n = mean 1 over n square root N= certain number and with decimal digit eg. 1.21 Please send me some suggestion about this . Many thanks Beside you...

View Answer   |  Apr 18 2005  7:41 AM GMT
Programming Languages, SQL, C
asked by vlui00

  0 pts.

Question on SETGT

Suppose if my logical file has records arranged in descending order of key field..say the LF has the following records EMPNO 10020 10015 10012 10011 10008 10005 10004 Now if I do SETGT with search argument as 10013, will the file pointer position on 10015 and the read operation will read 10015,...

View Answer   |  Apr 16 2005  9:49 PM GMT
Programming Languages, RPG
asked by a1b2c333

  0 pts.

Return compared to Set on LR

What is the difference between RETURN and SET on LR indicators? What exactly each one of them does?

View Answer   |  Apr 15 2005  8:12 PM GMT
Programming Languages, RPG
asked by a1b2c333

  0 pts.

Application/example using OPNQRYF

Can somebody give me an example where they felt that using OPNQRYF would be an optimized solution rather than creating a logical file?

View Answer   |  Apr 15 2005  3:15 PM GMT
Programming Languages, RPG
asked by a1b2c333

  0 pts.

HELP

I'D LIKE TO ASK HELP IN PROGRAMMING ESPECIALLY IN VISUAL BASIC.PLS SEND ME UPDATES ON DATABASE PROGRAMMING, INTERNET AND OTHER RELATED AND IMPORTANT KNOWLEDGES. THANKS.

View Answer   |  Apr 14 2005  11:59 PM GMT
Tech support, Networking, Programming Languages
asked by tazzygurl

  0 pts.

Printing on AS/400

Can we dynamically control the number of copies to be printed on AS/400 session. Any help on this would be appreciated. Thanks

View Answer   |  Apr 14 2005  11:21 PM GMT
AS/400, Programming Languages, RPG
asked by a1b2c333

  0 pts.

CHGPRTF

If I change the attributes of a printer file, say LPI,CPI..etc using CHGPRTF command, do I need to compile the RPG program again that uses this printer file?? Thanks

View Answer   |  Apr 14 2005  11:16 PM GMT
Programming Languages, RPG
asked by a1b2c333

  0 pts.

Record Selection

I have a requirement : Say on a display file screen if you enter a particular department, then the next screen should show employee details of that department only. Can I use OPNQRYF for selection of records based on department and then call the RPG prog. which will show the next screen..Will...

View Answer   |  Apr 14 2005  8:12 PM GMT
Programming Languages, RPG
asked by a1b2c333

  0 pts.

Data queues in RPG

Has somebody used a data queue in a RPG program.If so, what is the advantage of using a data queue. Can I have an example.

View Answer   |  Apr 14 2005  4:49 PM GMT
Programming Languages, RPG
asked by a1b2c333

  0 pts.

OVRDBF command

Suppose I use the following command in my CL program: OVRDBF file(Test) tofile(Qtemp/Test) Now I call my RPG program which has the file named Test. If I have to write records to the Test file, does that mean that the records will be written to the Qtemp/Test file ? If that is the case then my...

View Answer   |  Apr 14 2005  1:02 PM GMT
Programming Languages, RPG
asked by a1b2c333

  0 pts.

OPNQRYF vs. Logical

Hi, I am not very clear as to when should we use OPNQRYF and when should we use Logical file? Since logical file also offers DYNSLT facility, when is the use of OPNQRYF desirable?? Please advise.

View Answer   |  Apr 14 2005  12:54 AM GMT
Programming Languages, RPG
asked by a1b2c333

  0 pts.

41 - 60 of 83