Hi Brad,
you should define the work file to the Natural Profile you are using for your Natural session. You’ll most likely be using the default profile, which is NATPARM.
To fix the problem start the Natural Configuration Utility and then follow these steps:
Step 1: Select the “NATPARM” profile
Step 2: Select the “Natural Execution Configuration” parameter
Step 3: Select “Workfiles”
Step 4: Select “Work Files” this time
Step 5: Select the work file you want to open, in this instance it will be work file 7.
Step 6: Select the work file type, if it is a normal ASCII file then select “ASCII” or “Default”
Step 7: Select the “Close Mode”. You can leave it on “Auto”, if you select “User” you will have to issue an explicit “Close Work” statement in your program.
Step 8: Select the work file you want to open and upload from your program.
Step 9: Save the “NATPARM” profile and open a new Natural session. When you execute your program now it should read the content of the work file.
Hope this helps.
Regards
Theo
#webMethods#EntireX#Mainframe-Integration