Steps to do in adding a menu in JDE world

RYS

Member
Sorry if I have this dumb question, I'm new in JDE World and I already new a bit of RPG and CL programming. My boss asked me to do an RPG report program and insert it in a JDE Menu.

I've already done the following:
- created an RPG program that creates a report using the processing option parameters passed.
- copied an existing CL program and revised it to cater for my project.
- tried creating a JDE MENU, but unfortunately the CL program is not working properly when executed through the JDE Menu.

Please help me with the following questions:

1) What are the steps to make in putting a CL program in a JDE menu?

2) Is there a specific coding on the CL program that needs to be inserted for the Processing Options to be recognized by the RPG program?

3) Can i use a Keyed Logical File with a UNIQUE option for a driver file on my report? Which will be used in the JDE Menu with a Data Selection?

You're answers are greatly appreciated. I'm really very sorry for this dumb question.

Please do point me to the right direction, If there is a manual that will guide me step by step on how to add a program in JDE menu, that will be very awesome and will save me from loosing my job.

Thank you very much in advance.
 
The menu is going to call the CL passing PID (10) and VERSION (10).
Does your CL have these parms?

To get the p/opts, CALL P98CLOPT w/in your CL.
Search JDESRC for samples of where this is done.

Yes, you can base your CL on a keyed unique.

Did you copy your CL from an existing DREAMWRITER job?

How, SPECIFICALLY, is it not working?
Is it creating a joblog or pgm dump?

Gene
 
Did you compiled your RPG or CL to are valid and execable object library?
 
Back
Top