Hi Jerry,
I think I raised the same query a while back. The help pages that come with WDSC do not contain the error messages for CL commands.
Sorry for "spamming" this bit of code to you all, but I use this piece of VBSCript if I want full help for a CL program. It basically just brings up the relevant webpage from IBM's i5/OS information centre for the entered CL command.
--- script starts here --->
option Explicit
dim objArgs ' Command line arguments
dim begPos ' command line argument counter
dim argflag ' Contro lfor arguments
dim searchItem ' Item to be searched for
dim URL1 ' First part of URL
dim URL2 ' Last part of URL
dim WshShell ' WSH object
URL1="
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/cl/"
URL2=".htm"
Set objArgs = WScript.Arguments
For begPos = 0 to objArgs.Count - 1
If UCase(objArgs(begPos)) = "/P" Or UCase(objArgs(begPos)) = "-P" Then
argflag="P"
else
searchItem=objArgs(begPos)
end if
Next
if Len(Trim(searchItem))=0 or argflag="P" then
searchItem=inputbox("Enter CL Program item to look for", , searchItem)
end if
set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run Chr(34) & "%ProgramFiles%\Internet Explorer\IEXPLORE.EXE" & chr(34) & _
" -new " & Chr(34) & URL1 & Trim(searchItem) & URL2 & chr(34)
set WshShell = Nothing
set objArgs = Nothing
<--- script ends here ---
The Wscript.Arguments section was put in so that I could try to integrate it with WDSC directly, but I never got around to finding out *how* to integrate it with the F1 key or cursor position. YMMV
Change URL1 for your own O/S version.
I hope this helps.
Best regards,
Paul
-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Vern Hamberg
Sent: 8 January 2009 18:10
To: Websphere Development Studio Client for iSeries
Subject: Re: [WDSCI-L] Monitorable Error Messages in CL
Hey Jerry
You forgot the other step you do in SEU - F1
Vern
Jerry Adams wrote:
When entering a CL command using SEU, one can prompt (F4) on the command, move the cursor outside of a keyword option field, press Help (F1) and, by paging to the end of the text get a list of error messages that the command (CHKOBJ, for example) may return. This comes in real handy for a card carrying member of AARP, such as myself, who has trouble remembering things.
When entering a CL program in WDSc (v7), one can still prompt a command (F4) and get a dialog box to fill in the keyword options, but I don't see any way to display the potential error messages. Is the function there, and I'm just not seeing it?
Thanks.
Jerry C. Adams
IBM System i Programmer/Analyst
B&W Wholesale
office: 615-995-7024
email: jerry@xxxxxxxxxxxxxxx
As an Amazon Associate we earn from qualifying purchases.