Q
Problem solve Get help with specific problems with your technologies, process and projects.

Function ALWNULL and DFT

How do I move, in RPGIV for iSeries, *null to camp defined in physical file DDS with function ALWNULL and DFT(*NULL)?

You must use the ALWNULL(*USRCTL) keyword then | C EVAL %NULLIND(fieldname1) = *ON to set the field to null. This does not change the content of the field. I would assume that you would have done an eval fieldname1='' prior to the %NULLIND function. There may be other ways to do this as well.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.

Ask your systems management questions--or help out your peers by answering them--in our live discussion forums.


Dig Deeper on RPG iSeries programming

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close