Focal Point
[SOLVED] What dfoes a DEFINE FILE xxxx ADD do?

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5591023472

March 03, 2008, 10:43 AM
webmeister
[SOLVED] What dfoes a DEFINE FILE xxxx ADD do?
I'm looking for clarification about what a DEFINE FILE xxxx ADD does.... does it allow you to redefine a table and at the same time, add more fields to that table?

The reason I ask is that I've inherited several hundered FOCEXECs and have never come across this before, but now have a "need to know."

Thanks to all who reply....looking forward to hearing from you.

This message has been edited. Last edited by: webmeister,


Mainframe FOCUS 7.0
VM/CMS and MVS/TSO
March 03, 2008, 10:56 AM
Leah
quote:
DEFINE FILE xxxx ADD

It allows you to ADD additional defined fields to a previous set of DEFINE's.

DEFINE FILE ABC

END
TABLE FILE ABC

END
DEFINE FILE ABC ADD

END
TABLE FILE ABC

END

Second one gets new fields. Of courese, I'm not sure this works in all environments any more.


Leah
March 03, 2008, 11:15 AM
webmeister
Thank you, Leah,

That was what I was thinking, but wanted to have my thought confirmed.

I appreciate you taking the time to reply.


Mainframe FOCUS 7.0
VM/CMS and MVS/TSO
March 03, 2008, 11:30 AM
GinnyJakes
DEFINE FILE ... ADD is part of core FOCUS and folks here use it all the time.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
March 03, 2008, 11:55 AM
Darin Lee
We do as well.

Leah has the answer, to explain further, if you DEFINE FILE XXXXX and then later in the same procedure you DEFINE FILE XXXXX again, all the defined fields from the first are lost and/or replaced by the second unless you DEFINE FILE XXXXX ADD.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat