Search found 18 matches

by mbulka
Thu Nov 01, 2018 4:31 am
Forum: Questions & Answers
Topic: Calling user defined BIF in C from RDMLX Lansa Function
Replies: 20
Views: 3084

Re: Calling user defined BIF in C from RDMLX Lansa Function

Thank you Kevin

Yes, Yes.. DC@F40, .. thinking in U BIF macros world :)

All the best
Kind Regards,
Miroslav
by mbulka
Wed Oct 31, 2018 12:17 am
Forum: Questions & Answers
Topic: Calling user defined BIF in C from RDMLX Lansa Function
Replies: 20
Views: 3084

Re: Calling user defined BIF in C from RDMLX Lansa Function

Hi Kevin I would like to summarized with you to be sure regarding lists in retrieve phase back from my C to Lansa function. List1 is the one I send to and return without any update, delete, insert. List2 - another case, there will be update If I understand correctly, it does mean, that : 1) All (ARG...
by mbulka
Tue Oct 30, 2018 9:49 am
Forum: Questions & Answers
Topic: Calling user defined BIF in C from RDMLX Lansa Function
Replies: 20
Views: 3084

Re: Calling user defined BIF in C from RDMLX Lansa Function

Hi Kevin I have this part to be done. I can post, if interested for somebody. I would like to kindly ask you for one more thing. Return of argument, return values. I expect to return both, so no matter, if user BIF has defined parameters as ARG or RET. I need to return both. In practice, I did not f...
by mbulka
Fri Oct 26, 2018 6:08 pm
Forum: Questions & Answers
Topic: Calling user defined BIF in C from RDMLX Lansa Function
Replies: 20
Views: 3084

Re: Calling user defined BIF in C from RDMLX Lansa Function

Thank you Kevin to point me in. I will do.

I prepare processing for RDMLX Lansa BIF.
If I am correct from what I see in the guide, I have to use C service program as the RDMLX generates C.

I have already RDML variant with RPG in the place.

Thank you in advance
Kind Regards
Miroslav
by mbulka
Fri Oct 26, 2018 5:05 am
Forum: Questions & Answers
Topic: Calling user defined BIF in C from RDMLX Lansa Function
Replies: 20
Views: 3084

Re: Calling user defined BIF in C from RDMLX Lansa Function

Hi Kevin Thank you very much for your information, much appreciated I would like to kindly ask you, if I would like to get the values from the List1 and prepare for RPG call, /* definitions */ U_BIF_DECLARE_LIST_POINTER (pListArg1) ... X_VCHAR vchStringLocal[2000 + 1]; X_VCHAR vchDelimiter[3] = ", "...
by mbulka
Thu Oct 25, 2018 6:33 am
Forum: Questions & Answers
Topic: Calling user defined BIF in C from RDMLX Lansa Function
Replies: 20
Views: 3084

Re: Calling user defined BIF in C from RDMLX Lansa Function

Thank you, Kevin

I would like to get also 1st argument nickName
So, without setting pointer or with
I need to do
U_BIF_GET_ARG_AS_VCHAR (0, nickName)
in case, that nickName is 1st argument, right ?
nickName is character len 10
by mbulka
Wed Oct 24, 2018 4:38 am
Forum: Questions & Answers
Topic: Calling user defined BIF in C from RDMLX Lansa Function
Replies: 20
Views: 3084

Re: Calling user defined BIF in C from RDMLX Lansa Function

Hi Kevin Thank you for your answer. Yes, I have included x_bif000.h in my C program I use BIF macros, but the result from is zero. The reason why is the list of parameters in Lansa function is not in the good order. I have used The Lansa function enabled for RDMLX even if the Working List used is th...
by mbulka
Tue Oct 23, 2018 4:26 am
Forum: Questions & Answers
Topic: Calling user defined BIF in C from RDMLX Lansa Function
Replies: 20
Views: 3084

Re: Calling user defined BIF in C from RDMLX Lansa Function

When you debug C program generated for RDMLX Lansa function, there is for Working List comment in Lansa generated C code for RDMLX Lansa function in Lansa automatically service program written in C : /* Prepare builtin argument values vector list */ X_BIF_Arg_156[0] = V_FIELD_NICK; X_BIF_Arg_156[1] ...
by mbulka
Fri Oct 19, 2018 6:33 am
Forum: Questions & Answers
Topic: Calling user defined BIF in C from RDMLX Lansa Function
Replies: 20
Views: 3084

Re: Calling user defined BIF in C from RDMLX Lansa Function

Yes. I do. Still no success.
I know, that there is U_BIF_STANDARD_PARAMETERS in it.
I have used it.
But, I am not able to get vector
Do you have some example, how to read vector in C ?

Any help will be much appreciated.
Kind Regards,
Miroslav
by mbulka
Thu Oct 18, 2018 8:12 am
Forum: Questions & Answers
Topic: Calling user defined BIF in C from RDMLX Lansa Function
Replies: 20
Views: 3084

Re: Calling user defined BIF in C from RDMLX Lansa Function

Still no success.
There should be pointer set to memory to get the values by U_BIF_ macros ?
by mbulka
Thu Oct 18, 2018 8:11 am
Forum: Questions & Answers
Topic: CALL PGM(DCXP8731) PARM(U_BIF550 Y)
Replies: 2
Views: 725

Re: CALL PGM(DCXP8731) PARM(U_BIF550 Y)

I have done manually CRTSRVPGM, but I would like to kindly ask you, if you can say the prerequisites to be done by DCXP8731.
by mbulka
Thu Oct 18, 2018 8:10 am
Forum: Questions & Answers
Topic: User Name changed to DCXPGMLIB when Calling RPG
Replies: 2
Views: 1063

Re: User Name changed to DCXPGMLIB when Calling RPG

Hard to say, could be many things. Check SDS for your using User in your RPG. Maybe you have replaced the user with the one in your SDS ? D SDS D User 254 263 If yes, this could be the issue. Check the field in DC@ISPEC for user name, could be field DC@USR (or maybe field DC@GRU) Or you can debug, s...
by mbulka
Thu Oct 18, 2018 2:28 am
Forum: Questions & Answers
Topic: CALL PGM(DCXP8731) PARM(U_BIF550 Y)
Replies: 2
Views: 725

Re: CALL PGM(DCXP8731) PARM(U_BIF550 Y)

Hi everybody,

*HEAVYUSAGE used is not problem. Its about something else
by mbulka
Thu Oct 18, 2018 2:27 am
Forum: Questions & Answers
Topic: Calling user defined BIF in C from RDMLX Lansa Function
Replies: 20
Views: 3084

Re: Calling user defined BIF in C from RDMLX Lansa Function

I think not. I have prepared User BIF function, which is executed from generated C (respectively service program in C with the same name). Can you please provide me cook book example of necessary definition in my C BIF program executed ? I have implemented C Skeleton, but don’t know exactly, how to ...
by mbulka
Sun Oct 14, 2018 11:27 pm
Forum: Questions & Answers
Topic: CALL PGM(DCXP8731) PARM(U_BIF550 Y)
Replies: 2
Views: 725

CALL PGM(DCXP8731) PARM(U_BIF550 Y)

Hi Everybody, I have question. When I try to create service program using CALL PGM(DCXP8731) PARM(U_BIF550 Y) where U_BIF550 is BIF name and Y debug enabled and I put QSRVSRC in QTEMP with binder, why I received the error, that there is no 'current' block, even if I have EXPORT symbols named in and ...
by mbulka
Sun Oct 14, 2018 10:41 pm
Forum: Questions & Answers
Topic: Calling user defined BIF in C from RDMLX Lansa Function
Replies: 20
Views: 3084

Re: Calling user defined BIF in C from RDMLX Lansa Function

Is there any special need for ACTGRP ?
by mbulka
Sun Oct 14, 2018 10:33 pm
Forum: Questions & Answers
Topic: Calling user defined BIF in C from RDMLX Lansa Function
Replies: 20
Views: 3084

Calling user defined BIF in C from RDMLX Lansa Function

Hi Everybody I have trouble with Calling user defined BIF in C (service program) from RDMLX Lansa Function I have defined my own User defined BIF. I have written RDMLX function to execute this BIF. Unfortunatelly, It seems that the parameters are not passed to the C. When I try to get number of pass...
by mbulka
Sat Oct 13, 2018 8:49 am
Forum: Questions & Answers
Topic: User defined BIF in C RDMLX
Replies: 0
Views: 3015

User defined BIF in C RDMLX

Hi

Is it possible to see some C code example for RDMLX in C language ?
Example of RDMLX definition (dc@f48 parameters example or win) and more than skeleton, including entry parameters in C and execution of iseries RPG program ?

Thank you in advance for your assistance
Kind Regards
Miroslav