× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



The job might be gone by now - if the spooled files are deleted, then the job goes away. I would be surprised if the spooled file is not there from a compile.

OK, when you get the message, try this - go into your source, either a 2 option or a 5. Once there, press F15 and set the selection to a 2 for Spool file. Press Enter. If the spooled file exists, you should be returned to your source with a split screen - source above, spooled file below. If so, put *err where the cursor is and press F16 - this will bring you to whatever errors there are.

If when you set selection to 2, you get a number of fields in reverse image, then go to the "Browse spool file" line and press F4 - this will get you a list of spooled files - look for the last one that has the name of your program - put a 1 on it and press Enter. Press Enter again. Then do the thing with *err.

If it's not there at all, something is wrong with your setup for jobs. In that case, in SEU, press F18 - this is where you choose how things are compiled - there is an option to compile in batch - for right now, set that to N - then press Enter to set the value.

After you use F14 to compile, your job should not end, we hope. If it does, you REALLY have a problem, because failed compiles just don't kill your job. If your job is still up, then do what I said above - use the F15, etc.

You really should get one of those tutorials. They will guide you - or the Brian Kelly book that Scott mentions on his site. There are a lot of things you need to know - like how to use SEU effectively, etc. Here is a manual for just SEU - http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/books/c0926050.pdf

HTH
Vern

new_id Y wrote:
I tried to use this WRKJOB job(999515/NA123/P1) OPTION(*SPLF)

It says that jb not found :(




________________________________
From: Charles Wilt <charles.wilt@xxxxxxxxx>
To: RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
Sent: Thursday, June 25, 2009 3:23:37 PM
Subject: Re: help in start a first RPGLE program!!

Ok so look at your spool files (WRKSPLF). You should have some named
P1, those will be the compiler listings. Look in there to find our
why your compile failed.

Another way to see the spool file is to follow the instructions given
in the recovery part of the message.

WRKJOB job(999515/NA123/P1) OPTION(*SPLF)

HTH,
Charles

On Wed, Jun 24, 2009 at 5:43 PM, new_id Y<newid_y@xxxxxxxxx> wrote:
I am sorry , but i got this message after i pressed F1
Additional Message Information

Message ID . . . . . . : CPF1240 Severity . . . . . . . : 50
Message type . . . . . : Completion
Date sent . . . . . .. : 06/24/09 Time sent . . . . .. . : 23:29:11

Message . . . . : Job 999515/NA123/P1 ended abnormally.
Cause . . . . . : Job 999515/NA123/P1 ended abnormally on 06/24/09 at
23:29:11. The job was running in subsystem QBATCH. If the subsystem name
is *N, either the job did not run in a subsystem or the subsystem name could
not be determined. One of the following occurred:
-- The job was ended (ENDJOB command).
-- The subsystem in which the job was running was ended (ENDSBS command).
-- An error occurred.
Recovery . . .. : Display the job log (DSPJOBLOG or WRKJOB OPTION(*SPLF)
command) for information why the job or subsystem ended abnormally. Correct
the error and try the request again.

Bottom
Press Enter to continue.

F3=Exit F6=Print F9=Display message details F12=Cancel
F21=Select assistance level
Print operation complete to the default printer device file.





________________________________
From: Jerry Adams <Jerry@xxxxxxxxxxxxxxx>
To: RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
Sent: Wednesday, June 24, 2009 11:52:58 PM
Subject: RE: help in start a first RPGLE program!!

For one thing, the double quotes are not valid; should be single quotes. Which would result in a compile error. There should be a compilation listing somewhere; try using WRKSPLF.

If the abend was a result of an executing program, there would have been an error message (usually a CPFxxxx). In that case, position the cursor to the error message, press F1 and display the message details. Frequently there are preceding messages which tell the "real" story; pressing F10 (display job log) will display your current job's log.

That's the Reader's Digest version. Go from there.

Jerry C. Adams
IBM System i Programmer/Analyst
--
B&W Wholesale
office: 615-995-7024
email: jerry@xxxxxxxxxxxxxxx


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of new_id Y
Sent: Wednesday, June 24, 2009 3:32 PM
To: RPG programming on the IBM i / System i
Subject: Re: help in start a first RPGLE program!!

/free

dsply "hello World";

*inlr = *on;

/end-free
I did as above but still i find that abnormal job :(

How i can know the error and check it?
Thanks



________________________________
From: John McKay <jmckay@xxxxxxxxxxxxxxxx>
To: RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
Sent: Wednesday, June 24, 2009 9:57:28 PM
Subject: Re: help in start a first RPGLE program!!

/free

dsply "hello World";

*inlr = *on;

/end-free

The attachment is a light overview, hopefully it will help.

Regards,
John McKay
www.rpglanguage.com

----- Original Message ----- From: "Jerry Adams" <Jerry@xxxxxxxxxxxxxxx>
To: "RPG programming on the IBM i / System i" <rpg400-l@xxxxxxxxxxxx>
Sent: Wednesday, June 24, 2009 3:09 PM
Subject: RE: help in start a first RPGLE program!!


I once (and only once) wrote the (in)famous "Hello World" program in Java. But only after sitting through a class (no pun intended).

Adam already indicated that the question was ill-formed. Did the program compile, or is the compilation crashing? If the program compiled, what error message(s) do you get?

As far as the rules are concerned, the RPG Manual might be a good place to start; in fact, next to Barbara, Simon, and Scott, it's the gospel. For V5R4 you can download a copy of the manual and various other useful reference guides. If you are just learning RPG (any flavor) the manual is a lousy place to start.

Hope this helps.

Jerry C. Adams
IBM System i Programmer/Analyst
--
B&W Wholesale
office: 615-995-7024
email: jerry@xxxxxxxxxxxxxxx


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of new_id Y
Sent: Wednesday, June 24, 2009 4:06 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: help in start a first RPGLE program!!

Hi all,

I want help on how to start a simple program in RPGLE
I tried to write w hello world program but always i find the job end abnormaly
What is the detailed steps to write RPGLE programs ? what is the rules i have to follow?
Thanks



-- This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.

-- This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.

--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.