// // time: Wed Apr 24 07:53:48 1996 // // version: 3.0.0 (format), 3.1.0 (DX) // // // Begin MDF // MODULE MakeOneField // CATEGORY Macros // DESCRIPTION new macro // INPUT group; group or series or value list or string list; (no default); // OUTPUT output_1; field; // End MDF // // comment: If you are importing data using the general array format, and you specify that there are "n" different fields in the file, it will be imported as a group with "n" members. // comment: // comment: This macro converts this group into a single field, with a number of components, where the component names are the given field names. This is sometimes a more useful structure. Note that you will generally need to use Mark to mark a particular component as "data" in order to use most DX modules, which expect the data to be in a component named "data". // comment: (C) COPYRIGHT International Business Machines Corp. 1996. // comment: All Rights Reserved. // comment: Licensed Materials - Property of IBM // comment: // comment: Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of IBM not be used in advertising or publicity pertaining to distribution of the software without specific prior written permission. // comment: // comment: INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THE SOFTWARE, BOTH INDIVIDUALLY AND AS ONE OR MORE GROUPS, "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IBM DOES NOT WARRANT AGAINST THE INFRINGMENT OF PATENTS, COPYRIGHT OR ANY OTHER INTELLECTUAL PROPERTY RIGHTS OF OTHERS. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE, BOTH INDIVIDUALLY AND AS ONE OR MORE GROUPS, IS WITH YOU. // workspace: width = 423, height = 618 // layout: snap = 0, width = 50, height = 50, align = NN // macro MakeOneField( group ) -> ( output_1 ) { // // node Input[1]: x = 56, y = 0, inputs = 0, label = Input // parameter: position = 1, name = 'group', value = '(no default)', descriptive = 1, description = ' ', required = 0, visible = 1 // MakeOneField_Input_1_out_1 = group; // // node ForEachMember[1]: x = 114, y = 148, inputs = 1, label = ForEachMember // MakeOneField_ForEachMember_1_out_1, MakeOneField_ForEachMember_1_out_2, MakeOneField_ForEachMember_1_out_3 = ForEachMember( MakeOneField_Input_1_out_1 ) [instance: 1, cache: 1]; // // node Select[1]: x = 252, y = 105, inputs = 3, label = Select // MakeOneField_Select_1_out_1 = Select( MakeOneField_Input_1_out_1, NULL, NULL ) [instance: 1, cache: 1]; // // node First[1]: x = 384, y = 65, inputs = 0, label = First // MakeOneField_First_1_out_1 = First( ) [instance: 1, cache: 1]; // // node Get[1]: x = 332, y = 141, inputs = 3, label = Get // MakeOneField_Get_1_out_1, MakeOneField_Get_1_out_2 = Get( MakeOneField_Select_1_out_1, MakeOneField_First_1_out_1, NULL ) [instance: 1, cache: 1]; // // node Inquire[1]: x = 68, y = 312, inputs = 3, label = Inquire // input[2]: defaulting = 0, visible = 1, type = 32, value = "member names" // MakeOneField_Inquire_1_out_1 = Inquire( MakeOneField_Input_1_out_1, "member names", NULL ) [instance: 1, cache: 1]; // // node Select[2]: x = 174, y = 367, inputs = 3, label = Select // MakeOneField_Select_2_out_1 = Select( MakeOneField_Inquire_1_out_1, MakeOneField_ForEachMember_1_out_2, NULL ) [instance: 2, cache: 1]; // // node Replace[1]: x = 42, y = 451, inputs = 4, label = Replace // MakeOneField_Replace_1_out_1 = Replace( MakeOneField_ForEachMember_1_out_1, MakeOneField_Get_1_out_1, NULL, MakeOneField_Select_2_out_1 ) [instance: 1, cache: 1]; // // node Output[1]: x = 87, y = 555, inputs = 1, label = Output // parameter: position = 1, name = 'output_1', value = ' ', descriptive = 0, description = ' ', required = 0, visible = 1 // output_1 = MakeOneField_Replace_1_out_1; // // node Set[1]: x = 343, y = 532, inputs = 3, label = Set // Set( MakeOneField_Replace_1_out_1, MakeOneField_Get_1_out_2, NULL ) [instance: 1, cache: 1]; // network: end of macro body } MakeOneField_Input_1_out_1 = NULL; MakeOneField_ForEachMember_1_out_1 = NULL; MakeOneField_ForEachMember_1_out_2 = NULL; MakeOneField_Select_1_out_1 = NULL; MakeOneField_First_1_out_1 = NULL; MakeOneField_Get_1_out_1 = NULL; MakeOneField_Get_1_out_2 = NULL; MakeOneField_Inquire_1_out_1 = NULL; MakeOneField_Select_2_out_1 = NULL; MakeOneField_Replace_1_out_1 = NULL;