Get answers.  Share knowledge.  Collaborate with peers.




VB question

Okay, you described the task. Now, what is your question? What problem are you having? — Tom



View Discussion   |  April 24, 2013  12:51 AM
Visual Basic, Visual Studio 2008
discussed by:
TomLiotta
110,135 pts.

Tools for AS/400

Is this for something written in Java? Or are you thinking of a tool that helps to develop with Java on AS/400s? — Tom



View Discussion   |  April 24, 2013  12:50 AM
AS/400, AS/400 tools
discussed by:
TomLiotta
110,135 pts.

Spool print in Times New Roman

Every report uses an external printer file. Commonly QSYSPRT or QPRINT is used. You can use OVRPRTF if necessary.
.
You really should not use an IBM-supplied printer file, just as you wouldn’t use an IBM-supplied DSPF or PF for your own applications. It would be better if you copied one of those and used the copy instead. You could also make multiple copies with different names and use CHGPRTF to give each copy different attributes so that OVRPRTF wouldn’t be needed.
.
However, best would be not to use internal printer specs at all. How often do you code internal display file specs? Why would you use external display files and not use external printer files? The benefits of external printer files are more than those for display files.
.
Tom



View Discussion   |  April 24, 2013  12:30 AM
IBM i, Spool file
discussed by:
TomLiotta
110,135 pts.

Renewal of SSL certificate on AS/400

It might depend on your certificate provider. You need to contact them and ask what options they provide. I would expect that you can’t change the expiration period since longer periods can require longer key lengths. Instead of renewing, you will probably need to request a new certificate that has a longer period.
.
I believe that 1-year renewals can be better because they can be easier to schedule. Also, if personnel change, procedures might be forgotten or reminder e-mails might be lost. Organization details can also change and need to be re-authenticated as more years go by. However, longer terms can also come with slightly less cost per year.
.
As I understand things, you can typically purchase server certificates for 1, 2 or 3 years. From at least one provider I’ve seen, a 4-year certificate can be bought. Root certificates typically expire after 10 years. Someone with detailed experience might post corrections to what I’ve written here or add useful details.
.
Tom



View Discussion   |  April 24, 2013  12:19 AM
AS/400, SSL certificate
discussed by:
TomLiotta
110,135 pts.

How to insert Hex values through SQL/400

You can insert hex values with SQL if the column allows the hex value. Otherwise the INSERT would fail. — Tom



View Discussion   |  April 23, 2013  11:37 PM
SQL Database, SQL Query, SQL/400
discussed by:
TomLiotta
110,135 pts.

SFLLIN

One minor side note… You can create, populate and read a subfile in your program code without ever actually displaying it on a screen. Sometimes this can work as an array or MODS. By declaring an array over DSPF record format fields and arranging DSPF fields in a desired order, it can be easier to populate the DSPF. Sometimes. — Tom



View Discussion   |  April 23, 2013  11:34 PM
AS/400, DSPF, SFLLIN
discussed by:
TomLiotta
110,135 pts.

WRKQRY query

And you might want to test a query using option 3=Define the sequence. Change the sequences of some characters to see how it changes sorted results or changes comparisons for ‘greater than’, ‘less than’ or ‘equals’ in the test query that you create. — Tom



View Discussion   |  April 23, 2013  10:55 PM
AS/400, iSeries, WRKQRY
discussed by:
TomLiotta
110,135 pts.

WRKQRY query

Option 2 on your system causes Query to use the collating sequence for English. On someone else’s system, the option might show a different language or it might not be shown at all. Language collating sequences are often different from a hexadecimal sequence. For most things that involve a person looking at results, you should use the language sequence that is associated with that user. — Tom



View Discussion   |  April 23, 2013  10:30 PM
AS/400, iSeries, WRKQRY
discussed by:
TomLiotta
110,135 pts.

SFLLIN

I have a screen that does this with non-subfile data. Tab key advances thru “left side” fields and then “right side” fields (not actually columnar, more by proximity). The only unusual thing I found in the DDS (I didn’t write this one) is a display size override
DSPSIZ(27 132 *DS4)
My guess is any field located beyond some value (80 ?) is treated like it’s at the end.
So in your spare time, you may want to try this with your subfile to see how it responds.



View Discussion   |  April 23, 2013  8:31 PM
AS/400, DSPF, SFLLIN
discussed by:
aceofdelts
1,565 pts.

Spool print in Times New Roman

I’m 99% sure you won’t like it.
Times Roman is a proportional font.
Spaces take less horizontal distance then characters in a font of that type.
But RPG print spec’s locate by number of characters from the left margin.
Your columns of data will not be aligned.
But the printing will be very nice.



View Discussion   |  April 23, 2013  8:19 PM
IBM i, Spool file
discussed by:
philpl1jb
44,630 pts.

Spool print in Times New Roman

Do an OVRPRTF to set the Font jsut before you call your program that will produce the output.



View Discussion   |  April 23, 2013  8:02 PM
IBM i, Spool file
discussed by:
CharlieBrowne
33,730 pts.

Tools for AS/400

People create a tool to satisfy a need.
There are hundreds of free tools available on the web today.
Can you be more specific on what you are trying to accomplish?
Are you tryting to build something to sell? Or just a timesaver to give away?
What are your needs?



View Discussion   |  April 23, 2013  8:00 PM
AS/400, AS/400 tools
discussed by:
CharlieBrowne
33,730 pts.

Message subfile

Tom – I bet you didn’t think your extra tidbit of advice would be so useful so quickly. Thanks again … now that I consistantly populate the message subfile I saw that it was not properly clearing. Focussing on the api parms, I tried many combinations. Nothing worked until I reread your “Binary” advice – so I switched that parm (silly me – taking the IBM site info literally) to a 10 digit integer and it finally seems to work perfectly. So you answered my next question before I even asked it.
Have you ever thought of starting a “you want it yesterday – OK” service ? (like next day delivery only better)



View Discussion   |  April 23, 2013  7:44 PM
AS/400, MSGF, QMHSNDPM
discussed by:
aceofdelts
1,565 pts.

How to include mulitple emails as a Lotus Notes email attachment

The last poster said you could copy the text into doc and save with .eml extension. Easier to just save the email (from within notes). It automatically is saved with a .eml extension. Then just embed as a doc but will open up as an email once clicked.



View Discussion   |  April 23, 2013  6:58 PM
Lotus Notes, Lotus Notes email, Lotus Notes email attachments
discussed by:
stuarty
10 pts.

How to use SETLL and READE to solve this program

Great .. SETGT and,READPE aren’t operations that I need to use frequently.



View Discussion   |  April 23, 2013  6:49 PM
AS/400, Physical File
discussed by:
philpl1jb
44,630 pts.

How to insert Hex values through SQL/400

If you are creating a table, you have predefined fields. So I do not understand how you would insert something after the last field in the file.
If you want to insert a new record with a hex value, you can do that with SQL.

INSERT INTO yourlib/yourfile VALUES(X'3F')



View Discussion   |  April 23, 2013  3:22 PM
SQL Database, SQL Query, SQL/400
discussed by:
CharlieBrowne
33,730 pts.

discussed by:
tlsanders1
1,290 pts.

WRKQRY query

http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c4152104.pdf
pages 111-114
To see the collating sequence
- select collating sequence
- Enter Collating sequence option 3 .. (Define the Sequende)
F15 will show the language sequence (for your computer this is English )
F14 will show hexadecimal sequence

The sequence used will determine sort order and greater then / less then logic
F23 will allow you to save a sequence as the default.

Option 3 allows you to modify the sequence .. it has upper case = lower case
a=70 and A=70. So A and a will be sorted as equal.



View Discussion   |  April 23, 2013  1:17 PM
AS/400, iSeries, WRKQRY
discussed by:
philpl1jb
44,630 pts.

Holding and restarting the job scheduler

How is the job scheduled now? — Tom



View Discussion   |  April 23, 2013  1:00 PM
Advanced Job Scheduler, AS/400 job scheduler
discussed by:
TomLiotta
110,135 pts.

How to use SETLL and READE to solve this program

Post your working code here, and we’ll see if we can help improve it. I’ll post mine after yours.

Tom



View Discussion   |  April 23, 2013  12:58 PM
AS/400, Physical File
discussed by:
TomLiotta
110,135 pts.