PMS Information Systems
Welcome to PMS Information Systems - IBM i (AS/400) Forum !!!

Get Answers for all your queries on IBM i (AS/400).

What's the difference between EXCHANGE(*NOW) and EXCHANGE(*ALWAYS)?

View previous topic View next topic Go down

What's the difference between EXCHANGE(*NOW) and EXCHANGE(*ALWAYS)?

Post  maran on Sun Oct 14, 2012 11:36 pm

*NOW, which is the default value, indicates that all nominated fields should be mapped into the exchange list now (ie: at this point in the program logic). This version of the EXCHANGE command is considered to be an executable command because it causes the fields to be placed into the exchange list at this point in the RDML program (and nowhere else).

*ALWAYS, the other allowable value, indicates that all nominated fields should be automatically mapped into the exchange list at several pre-defined points during the program's execution. These pre-defined points are:
• during any type of normal program termination
• before calling a process or function (CALL command)
• before invoking a PROMPT_KEY handling process or function
• before submitting a process or function (SUBMIT command
avatar
maran
Admin

Posts : 442
Join date : 2009-07-24

View user profile http://pmsinformationsystem.forumotion.net

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum