Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Empty file thru RUN map if data no content

Status
Not open for further replies.

venkatpavan

Programmer
Feb 18, 2006
42
SG
Hi, I have a main map calling a another map and getting data from first card using "-OF1".

If RUN map doesn't create any data so nothing sent to main map(As output card set as create on content), main map is not generating any file.

My query is even if RUN map not generate data I need to create empty file atleast.If I change the output card setting from create on content to create in run map I'm able to do that but not allowed to do that as it is used by some other interfaces.

all I could work on is main interface ,any suggestions.

Thanks,
 
Easy,

Change your rule from:

=VALID(RUN("Test2",ECHOIN(1,In1)+" -OF1 Output.txt"),FAIL(LASTERRORCODE()))

to

=VALID(RUN("Test2",ECHOIN(1,In1)+" -OASINK1K'Output.txt'"),FAIL(LASTERRORCODE()))

...sending the output to SINK, but forcing a creation of a backup, to contain the actual data, even if it is empty.

Thank-you.

Paul.


Paul Brett
IBM Websphere TX L2 Customer Support EMEA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top