Get answers.  Share knowledge.  Collaborate with peers.




Upgrading my network

It’ll be easy for you. You should have no problem hiring a qualified network technician to get it done. You have a good enough description for the technician to make an initial plan, and details can be worked out from there. — Tom



View Discussion   |  January 20, 2013  12:56 PM
Microsoft Office, Microsoft Office 365
discussed by:
TomLiotta
107,995 pts.

How to implement MOUBTN using RPG III/RPG400

What emulator is used? What version? If it’s iSeries Access, what is its service level? — Tom



View Discussion   |  January 20, 2013  11:48 AM
AS/400, DSPF, MOUBTN, Mouse, RPG III, RPG/400
discussed by:
TomLiotta
107,995 pts.

Problem with the READ from PF in RPGLE

You still haven’t shown the F-spec for m1ama00, and you haven’t shown the key information for the file from the file description. And you still haven’t explained why the CHAIN statement is in your READ loop.
 
But if you want to know how to read the file in sequence, the best guess is to delete that CHAIN statement from the program. The program will probably work better without it. It doesn’t seem to have a purpose, and it looks like it interferes with your sequencing.
 
Tom



View Discussion   |  January 20, 2013  10:46 AM
AS400 RPGLE, reading Physical file
discussed by:
TomLiotta
107,995 pts.

How to implement MOUBTN using RPG III/RPG400

We have checked the VLDCMDKEY indicator with double-click on the mouse and the indicator is not turned on. So even the solution I supposed we could use won’t work.



View Discussion   |  January 20, 2013  8:23 AM
AS/400, DSPF, MOUBTN, Mouse, RPG III, RPG/400
discussed by:
Zack
250 pts.

Problem with the READ from PF in RPGLE
This would help you i Guess.. 
This is the run_qry subroutine its executed from Load_Data Subroutine.. 


     run_qry       BegSr            
/EXEC SQL                           
+ PREPARE S1 FROM :QRYSTR1          
/END-EXEC                           
*                                   
/EXEC SQL                           
+ DECLARE C1 CURSOR WITH HOLD FOR S1
/END-EXEC                           
*                                   
/EXEC SQL                           
+ OPEN C1                           
/END-EXEC                           
/EXEC SQL                           
+ FETCH NEXT FROM C1 INTO :agent_prm
/END-EXEC                           
/EXEC SQL                                        
+ FETCH NEXT FROM C1 INTO :agent_prm             
/END-EXEC                                                   
* 
/EXEC SQL                                        
+ CLOSE C1                                       
/END-EXEC                                        
                   EndSr                         


View Discussion   |  January 20, 2013  7:37 AM
AS400 RPGLE, reading Physical file
discussed by:
Sureyz
1,485 pts.

Problem with the READ from PF in RPGLE
Hi Phil and Tom .
Thats my poor coding. 
Simply i want to read m1ama00 file from the beginning to end and execute the subroutine for the each AGCDE.. 
How can i do that..  If u specify the code it would be helpful to me.. 

Thanks 
Surey


View Discussion   |  January 20, 2013  7:31 AM
AS400 RPGLE, reading Physical file
discussed by:
Sureyz
1,485 pts.

How to implement MOUBTN using RPG III/RPG400

Wiki – thank you for your response. According to the documentation, *ULD means “unshifted (not upper shift) left button double click” where we understand that “unshifted” means no use of the shift button. In any case, we’ve tried both cases – pressing the shift button and not pressing it – and the results are the same. CF09/INKI is not turned on. As for VLDCMDKEY, this would indeed tell us that ENTER was not pressed but it wouldn’t indicate that the mouse was used rather than a command key. We could, I suppose, if the indicator for VLDCMDKEY was ON and assuming that the mouse is considered to be a command key, check for all valid command keys (F1-F24) and if no command key was pressed then assume that the mouse was double-clicked. This solution, if it works, is not explicit and leaves open room for error so getting MOUBTN to work is preferable.

To reiterate, what we want is to know that on a particular display field the mouse was double-clicked in order to open and display a particular window.



View Discussion   |  January 20, 2013  5:56 AM
AS/400, DSPF, MOUBTN, Mouse, RPG III, RPG/400
discussed by:
Zack
250 pts.

How to convert FXP to PRG file name (ITMAS.FXP TO ITMAS.PRG)

What platform are you asking about? What OS is being used? Do you only need to rename, or is there a conversion that must be run? What is “ITMAS.FXP”? — Tom



View Discussion   |  January 20, 2013  3:09 AM
FXP, PRG
discussed by:
TomLiotta
107,995 pts.

discussed by:
philpl1jb
44,150 pts.

Expression to insert value to a table column in SQL

…though it could indeed be replaced by overflow/underflow if the data isn’t good. — Tom



View Discussion   |  January 20, 2013  12:31 AM
AS/400, SQL
discussed by:
TomLiotta
107,995 pts.

Expression to insert value to a table column in SQL

SQL0406 is “Conversion error on assignment to column &2.” It’s a conversion error (as noted in the question). It goes away when the CAST() is done. — Tom



View Discussion   |  January 20, 2013  12:29 AM
AS/400, SQL
discussed by:
TomLiotta
107,995 pts.

Expression to insert value to a table column in SQL

Apparently not. This was a question about error SQL0406 which is, I believer, an overflow situation.



View Discussion   |  January 20, 2013  12:24 AM
AS/400, SQL
discussed by:
philpl1jb
44,150 pts.

Expression to insert value to a table column in SQL

Error handling for possible overflow/underflow is always a good idea. Can’t argue against it. However, the values in A, B, C and D should sanity checked at the point of entry (or update). If values that will be trouble are not allowed into the file in the first place, later tests can be minimized for processing efficiency. This current process is only updating FLD1, so it might be rational to _assume_ that the existing values will work. Maybe. — Tom



View Discussion   |  January 19, 2013  10:12 PM
AS/400, SQL
discussed by:
TomLiotta
107,995 pts.

Expression to insert value to a table column in SQL

Don’t know if a case can be used in the update..might be two updates with where clauses .. 99999etc where A*B*C/10**D > 9999999999999.99 and the other updates the field with the actual value. 



View Discussion   |  January 19, 2013  8:16 PM
AS/400, SQL
discussed by:
philpl1jb
44,150 pts.

Expression to insert value to a table column in SQL

so I would probably do a case filling the field with 9s when the result is > 9999999999999.99



View Discussion   |  January 19, 2013  8:12 PM
AS/400, SQL
discussed by:
philpl1jb
44,150 pts.

Expression to insert value to a table column in SQL

…SET FLD1 = A*B*C/cast(10**D as int)Will fail with divide by zero error when D is a negative number…Doesn’t matter what you do on the right, process will fail with error SQL0406 when updating FLD1 when the answer has more than 13 significant digits as in 1234567890123.45 * 1234567890123. * 12345678.90123 / 10 * 1 



View Discussion   |  January 19, 2013  8:07 PM
AS/400, SQL
discussed by:
philpl1jb
44,150 pts.

Disabling of Domino email forwarding not working!

- Have a down time .- Put the Domino Server Down .- Install PF4 http://www-01.ibm.com/support/docview.wss?uid=swg24028680Then Check it out ..



View Discussion   |  January 19, 2013  7:37 PM
Lotus Domino, Lotus Domino 8.5.2
discussed by:
Abushahd
3,225 pts.

Problem with the READ from PF in RPGLE

The load_data subroutine is only useful to show that it doesn’t affect the order of records. It still doesn’t show anything about how the file is ordered. It doesn’t include the F-spec. It doesn’t include the file description. And it certainly doesn’t tell us why you have a CHAIN to the same file right in the middle of a READ loop. That is what causes your problem, but we still can’t tell what the programming should be doing because we don’t know any definitions. — Tom



View Discussion   |  January 19, 2013  6:58 PM
AS400 RPGLE, reading Physical file
discussed by:
TomLiotta
107,995 pts.

What do you think about this notebook?

If it meets your needs, then it’s fine. But the same answer would go for anything you asked about. This isn’t a PC review forum. –Tom



View Discussion   |  January 19, 2013  6:48 PM
Notebook, Notebook review
discussed by:
TomLiotta
107,995 pts.

How to implement MOUBTN using RPG III/RPG400

Correction to ‘Answer’: *ULD is Unshifted Left Double-click. — Tom



View Discussion   |  January 19, 2013  6:40 PM
AS/400, DSPF, MOUBTN, Mouse, RPG III, RPG/400
discussed by:
TomLiotta
107,995 pts.