Use DataDict.pkg Open C_Layout Open C_System Register_Object oCalendar_Layout_sl Class cC_LayoutDataDictionary is a DataDictionary Procedure Construct_Object Forward Send Construct_Object Set Main_file to C_Layout.File_Number Set Add_System_File to C_System.File_Number DD_Lock_On_All Set Foreign_Field_Option DD_KEYFIELD DD_NOPUT to True Set Foreign_Field_Option DD_KEYFIELD DD_FINDREQ to True Set Foreign_Field_Option DD_INDEXFIELD DD_NOPUT to True Set Foreign_Field_Option DD_DEFAULT DD_DISPLAYONLY to True Set Field_Auto_Increment Field C_Layout.URN to File_Field C_System.L_URN_Layout Set Field_Prompt_Object Field c_Layout.Name to oCalendar_Layout_sl Set Field_Option Field c_Layout.Name DD_REQUIRED to True End_Procedure End_Class #IFDEF Is$WebApp #ELSE Use Calendar_v2\Calendar_Layout.sl #ENDIF