Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

iSeries / AS400 FAQ : (Category) Programming : (Category) RPG : When I pass numeric parameters to my RPG program from the command line my program isn working as expected, why?

0
Posted

iSeries / AS400 FAQ : (Category) Programming : (Category) RPG : When I pass numeric parameters to my RPG program from the command line my program isn working as expected, why?

0

The command line doesn’t know what type of parameters it is trying to pass, so it converts all numeric variables into 15,5 before passing them. Number of work arounds include: • Create a command to call the RPG program, which will convert the numeric variables to the length declared in the command. • Pass the numeric values as character data (I.E.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123