Page 1 of 1

Compilation problems with jumpstart webservice RNF7701

Posted: Wed Oct 31, 2018 6:58 am
by Jose Manuel
We are trying to create a template (web service) with Jumpstart in V6R1
We always have the same compilation problem RNF7701.
I send a PDF with the whole process

Re: Compilation problems with jumpstart webservice RNF7701

Posted: Wed Oct 31, 2018 11:22 am
by Emily
Hi Jose,

Can you make sure that the library list in JumpStart is correct? You're most likely receiving this error because the library that you are compiling your program and display file into is not included in your library list. When this happens, the compiler isn't able to find the display file when trying to compile the RPG program, which causes a compilation error.

If you add your library (PRUEBAEGL) to the library list in JumpStart and then try generating your application again, this should work properly for you. To change your library list in JumpStart, you can simply select the 'Modify Library List' link.

I hope that this helps!

Re: Compilation problems with jumpstart webservice RNF7701

Posted: Mon Nov 05, 2018 9:41 pm
by Jose Manuel
you see, I'm a RPG programmer of the ancient
What you have indicated to me, I believe that I come to understand. but it does not work.
is V6R1m0 version possible? some PTF ??
problems of qualification of objects, procedures ??
the truth I just want to now serve an XML or JSON and step consume
I have researched Scott but it is very complex, I thought that profoundui would give me those solutions, but I do not see examples and Jumpstart does not work for me.
I know that Node.js is necessary but step by step

I'll pass other PDFs with the ERROR

Re: Compilation problems with jumpstart webservice RNF7701

Posted: Fri Nov 09, 2018 11:41 am
by Jose Manuel
any ideas ?? Thank you

Re: Compilation problems with jumpstart webservice RNF7701

Posted: Tue Nov 13, 2018 12:54 pm
by Scott Klement
This error (RNF7701) is not related to the library list.

It means that the RPG opcode is not compatable with the data structure that was used. As with any RPG compile error, you can learn more about it by looking at the compile listing. Here is the error message copy/pasted from the compile listing:
*RNF7701 30 000073 La estructura de datos HEADER no se permite para la operaciĆ³n.
*RNF7701 30 000078 La estructura de datos HEADER no se permite para la operaciĆ³n.
This tells me that the error is occuring on lines 73 and 78. Here is the source for those lines:

Code: Select all

D Header          DS                LikeRec(DisplyFile.Header:*ALL)

73 -->     Write DisplyFile.Header Header;
78 -->     Read DisplyFile.Header Header;
So the problem is that the HEADER data strucuture (which was defined with *ALL) cannot be used with the WRITE or READ opcode. The details of message RNF7701 tell you to use *INPUT for reads, and *OUTPUT for writes.

My guess is that the feature that allowed *ALL to be used with any opcode wasn't available in V6R1, but was added in a later release. This is only a guess, I cannot find documentation about when that feature was added.

Jose, consider changing that template to use code that works on old releases. Or, if you wish Profound to help, report this as a bug.

Re: Compilation problems with jumpstart webservice RNF7701

Posted: Thu Nov 15, 2018 2:34 pm
by Jose Manuel
https://www.ibm.com/support/knowledgece ... r2post.htm

Relaxed rules for data structures for I/O operations
An externally-described data structure or LIKEREC data structure defined with type *ALL can be used as the result data structure for any I/O operation

According to IBM it is no longer 7.1 is from 7.2 as it seems.
Please at least indicate in which version you can do things with jumpstart-
There are still many machines in V6R1. the only thing that can be done with jumpstart
It is a simple subfile and a little more and interesting as web services and what is
what we need the old ILERPG. because it forces us to other alternatives
either the integrated web service or your YAJL or similar.
I want to use Profoundui for that and invested in it.
If I'm wrong, maybe it's possible. you are praised

Sorry if my post is a bit aggressive
Thank you for your great Master

Re: Compilation problems with jumpstart webservice RNF7701

Posted: Thu Nov 15, 2018 3:38 pm
by Scott Klement
So, you have three possibilities:

1. You can change the code that JumpStart generates by changing the template.
2. You don't have to use JumpStart for web services at all, JumpStart is just a code generator, you can write your own code without it.
3. You can report this to Profound Logic and ask them to fix it.