Get answers.  Share knowledge.  Collaborate with peers.




Making a macro in as400

Welcome to ITKE MacAttack! The best idea is to start a new question so our experts can try to help you.

For more information on how our community works, check out our FAQ.



View Discussion   |  June 19, 2013  3:28 PM
AS/400, AS/400 macros, Macros
discussed by:
Michael Tidmarsh
14,015 pts.

Find # days between 2 dates in Query 400

A number of years ago in our shop we implemented a date file for such things. This was before some of the handy date functions become readily available. The file contains dates for many years.

Each record contains the date in various formats plus the date number following the same numbering as Excel. To determine the number of days between two dates we chain to the file with each of the dates and subtract one date number from the other. Not at all elegant but it works and has proven very handy. Use of this file has dropped off in recent years but we still use it occasionally for situations such as you describe.

If you want to know a date 30 days from today, just get today’s date number from the file, add 30 to it and retrieve the new date using the new date number as the key.

Again, this a really old school but it works nicely in some applications like query.



View Discussion   |  June 19, 2013  3:28 PM
AS/400 Query, iSeries development
discussed by:
WoodEngineer
5,570 pts.

SAP-PI

To determine what skills are in HOT demand, contact a local recruiter to find out what kind of positions they are having a had time filling.
What is HOT in one geographic area may not be HOT in another. So you need to determine where you want to work. a current HOT skill may not also mean more $. You need to look at what is best for you long term.



View Discussion   |  June 19, 2013  3:25 PM
SAP Career, SAP PI
discussed by:
CharlieBrowne
33,720 pts.

AS/400 RPGLE

Sorry about the previous comment – I didn’t read the initial question closely.

UDATE, *DATE, UMONTH, *MONTH, UDAY, *DAY, UYEAR, *YEAR are available in RPGLE (they provide the run time date which may or may not be congruent with your requirements), as are the %DATE and %TIMESTAMP functions.

The DATE keyword in display and printer files is also capable of supplying the system date.



View Discussion   |  June 19, 2013  3:23 PM
AS/400, RPGLE
discussed by:
Splat
5,740 pts.

IT service assets

We answer technical questions at this site.
Have you done any research yourself on this topic?
If so, do you have a specific business related question that we can assist you with?



View Discussion   |  June 19, 2013  3:22 PM
IT service, IT Service Desk
discussed by:
CharlieBrowne
33,720 pts.

Making a macro in as400

I’m trying to run a macro within a macro from my text.mac file. I tried various syntax with no avail. Can someone help out? Also, if there is reference for all the Macro commands that would be really helpful too.



View Discussion   |  June 19, 2013  3:16 PM
AS/400, AS/400 macros, Macros
discussed by:
macattack
15 pts.

SETLL

you can user *Start with SETLL instead of using *Loval for the nonkeyed file.



View Discussion   |  June 19, 2013  1:10 PM
AS/400, Physical File, READE, SETLL
discussed by:
ReshmaG
455 pts.

DB2 WebQuery for System i problem
But when I try to start web query, the command is not available…
.
How are you trying to start it? What command is unavailable? (Is a web server running?)
.
Tom


View Discussion   |  June 19, 2013  11:35 AM
AS/400, AS/400 commands, DB2 Web Query
discussed by:
TomLiotta
110,135 pts.

How to get the maximum access path size value in a program?
…the outfile field MBRCDC ( Record Capacity) is not giving the correct value.
.
The MBRCDC field is in the outfile when TYPE(*MBRLIST) is requested. You would need TYPE(*ATR) to get the access path size attribute. The PHAPSZ field will be in that outfile and will have ’1′ for a *MAX1TB access path and ’0′ for *MAX4GB.
.
The access path size can be pulled directly from the *FILE description without needing an outfile. If the OS version is known, it’s a fairly small CL procedure.
.
Tom


View Discussion   |  June 19, 2013  11:29 AM
AS/400, AS/400 commands, DSPFD
discussed by:
TomLiotta
110,135 pts.

Outlook 2010 calendar entries

Try the following tips to resolve the issue:
-> Run the commands Outlook.exe /cleanviews
-> Uncheck the option ‘cache exchange mode’
-> Recreate the AD profile for users.
Now, enable transport logging and then ‘turn off the shared folder’.
I hope your problem will be solved.



View Discussion   |  June 19, 2013  10:51 AM
Microsoft Outlook 2010, Microsoft Outlook Calendar
discussed by:
Amanda lakai
385 pts.

Reply and forward problem

The above error can occur due to Lotus Notes corruption.
Follow the given steps to resolve the above error:
(1) Exit Lotus Notes application.
(2) Delete the log.nsf and cache.ndk files .
location of files : C:\notes\data directory.
(3) Restart Lotus Notes application.
(4) Uninstall and Re- Install Lotus Notes application again.

I hope this will resolve the problem.
This error can also arise due to some other reasons such as the user or admin attempted re-installation process over an actual installation process .
Or it may also occur if the server document has a Directory Assistance database field containing a non-existent file name.In such case follow the given steps:
-> Open the names.nsf using Notes client,
-> Open the Server> Servers view
-> Open the server document for Domino server that you’re installing on.
-> Delete the non-existent file name in the Directory Assistance field.

I hope that above steps will help you to solve your issue



View Discussion   |  June 19, 2013  10:50 AM
Lotus Notes, Lotus Notes error messages
discussed by:
Amanda lakai
385 pts.

RPG III to RPG IV conversion

Here’s a little CL PGM CONVERT RPGIII TO RPG 1V.

PGM PARM(&PROGRAM &SOURCE &LIBRARY)
DCL VAR(&PROGRAM) TYPE(*CHAR) LEN(10)
DCL VAR(&LIBRARY) TYPE(*CHAR) LEN(10)
DCL VAR(&SOURCE) TYPE(*CHAR) LEN(10)
DCL VAR(&SRCTYPE) TYPE(*CHAR) LEN(10)

/* IF NOT RPG3, SKIP ALL PROCESSING */
RTVMBRD FILE(&LIBRARY/&SOURCE) MBR(&PROGRAM) +
SRCTYPE(&SRCTYPE)
IF COND(&SRCTYPE *NE ‘RPG ‘) THEN(DO)
SNDMSG MSG(‘Convert failed. ‘ *CAT &PROGRAM *TCAT ‘ +
is not a RPG3 program.’) TOUSR(*REQUESTER)
GOTO END
ENDDO

CHKOBJ OBJ(&LIBRARY/CRPG3SAVED) OBJTYPE(*FILE)
MONMSG MSGID(CPF9801) EXEC(CRTSRCPF +
FILE(&LIBRARY/CRPG3SAVED) RCDLEN(120) +
TEXT(‘Saved RPG3 prior to conversion’))
CPYSRCF FROMFILE(&LIBRARY/&SOURCE) +
TOFILE(&LIBRARY/CRPG3SAVED) FROMMBR(&PROGRAM)
RMVM FILE(&LIBRARY/&SOURCE) MBR(&PROGRAM)
CVTRPGSRC FROMFILE(&LIBRARY/CRPG3SAVED) +
FROMMBR(&PROGRAM) TOFILE(&LIBRARY/&SOURCE)
END: ENDPGM



View Discussion   |  June 19, 2013  9:51 AM
AS/400, RPG Programming, RPGILE
discussed by:
AS1
75 pts.

How to read from flat file

thanks a lot tom :)



View Discussion   |  June 19, 2013  8:25 AM
AS/400, as/400 files
discussed by:
Prashanth123
185 pts.

How to get the maximum access path size value in a program?

But I could not get the details when I OUTFILE using DSPFD,…
.
Why not? It is included for TYPE(*ATR).
.
What OS version are you needing this for?
.
hi…..am also try but did’t work…



View Discussion   |  June 19, 2013  4:33 AM
AS/400, AS/400 commands, DSPFD
discussed by:
AS1
75 pts.

How to get the maximum access path size value in a program?

Hi Tom/Charlie,

I Tried the same as mentioned but the outfile field MBRCDC ( Record Capacity) is not giving the correct value. Can you tell me the OUTFILE field?

Thanks,
Dev



View Discussion   |  June 19, 2013  1:14 AM
AS/400, AS/400 commands, DSPFD
discussed by:
as400dev
200 pts.

How to get the maximum access path size value in a program?
But I could not get the details when I OUTFILE using DSPFD,…
.
Why not? It is included for TYPE(*ATR).
.
What OS version are you needing this for?
.
Tom


View Discussion   |  June 18, 2013  11:43 PM
AS/400, AS/400 commands, DSPFD
discussed by:
TomLiotta
110,135 pts.

AS/400 Triggers – Writing a trigger for a file

As long as the trigger action is part of the COMMIT transaction, any rows written to a log file will be rolled back when the transaction is rolled back. Writing to a log file generally is not a very good use of a trigger anyway. If you need to “log” database activity, use a journal. You’ll have a journal anyway if you’re working with commitment control, so what’s the point of a “log file”?
.
Tom



View Discussion   |  June 18, 2013  9:45 PM
as400/DB2 - Trigger - Comit
discussed by:
TomLiotta
110,135 pts.

Data Integrity

Can you give us the basis behind your question?
Going from System A to System B, basic data integrity checking would be record counts, and viewing basic file contents.

I’m think you may be asking regarding porting ting data for an application; in which case you will probably have very different DB files on the two machines. So, you may want to know that all customers still have the correct addresses, and other information.

So, can you give us more information as to why you need to know this, we can help you.



View Discussion   |  June 18, 2013  8:45 PM
AS/400, Data backup, HP
discussed by:
CharlieBrowne
33,720 pts.

DCOM uses and its component

Welcome to ITKE, kundan25! This definition from WhatIs.com will help you get started.

To learn more about our community, check out our FAQ.



View Discussion   |  June 18, 2013  6:26 PM
DCOM, Software architecture
discussed by:
Michael Tidmarsh
14,015 pts.

AutoCAD table

Sorry, you should post this on an Autocad specific site.



View Discussion   |  June 18, 2013  6:09 PM
AutoCAD 2013, AutoCAD table
discussed by:
philpl1jb
44,630 pts.