When using DataGrip, DbVisualizer, SQuirreL or any other JDBC based tool:
CALL SYSPROC.ADMIN_CMD ('REORG TABLE TABLE_NAME')
It should work also with other db2 client native commands.
When using DataGrip, DbVisualizer, SQuirreL or any other JDBC based tool:
CALL SYSPROC.ADMIN_CMD ('REORG TABLE TABLE_NAME')
It should work also with other db2 client native commands.
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (1)
Option Explicit
'==========================================================
' Build one section per MVG BC Name (Column C) from Excel.
' - Groups are made by contiguous identical values in Col C
' - Sheet1 is sorted by Column C first to guarantee blocks
' - Summary table: 4 rows × 2 cols
' - Field-list table: 5 cols (Field Group | Nbr. | Field | Universe | LOV)
' - Nbr. & LOV columns are fixed to ~1.0 cm
'==========================================================
Public Sub BuildTablesFromExcel()
Dim xlApp As Object, xlWB As Object, xlWS As Object
Dim fd As FileDialog, filePath As String
Dim data As Variant
Dim nRows As Long, nCols As Long
Dim i As Long, j As Long, startRow As Long, endRow As Long
Dim grpKey As String
Dim madeFirstGroup As Boolean
Dim groupCount As Long
NextRow:
Loop
CleanExit:
On Error Resume Next
If Not xlWB Is Nothing Then xlWB.Close SaveChanges:=False
If Not xlApp Is Nothing Then xlApp.Quit
Application.DisplayAlerts = True
Application.ScreenUpdating = True
Exit Sub
CleanFail:
MsgBox "Error " & Err.Number & ": " & Err.Description, vbExclamation
Resume CleanExit
End Sub
'-------------------- Helpers --------------------
Private Function TrimSafe(ByVal v As Variant) As String
If IsError(v) Or IsNull(v) Then
TrimSafe = ""
Else
TrimSafe = Trim$(CStr(v))
End If
End Function
' Normalizes a key for group comparison (case/space safe)
Private Function KeyOf(ByVal v As Variant) As String
Dim s As String
s = TrimSafe(v)
s = Replace(s, ChrW(160), " ") ' NBSP -> space
s = Application.Clean(s) ' remove control chars
s = Trim$(Replace$(s, vbTab, " "))
Do While InStr(s, " ") > 0
s = Replace$(s, " ", " ")
Loop
KeyOf = UCase$(s) ' case-insensitive
End Function
Private Sub AddHeading(ByVal text As String)
Dim r As Range
Set r = ActiveDocument.Range(ActiveDocument.Content.End - 1, ActiveDocument.Content.End - 1)
r.InsertAfter text & vbCr
r.Style = wdStyleHeading2
r.InsertParagraphAfter
End Sub
Private Sub AddSummaryTable(ByVal className As String, _
ByVal listApplet As String, _
ByVal mvgBCName As String, _
ByVal searchSpec As String)
End Sub
Private Sub AddFieldListTable(ByRef data As Variant, _
ByVal startRow As Long, _
ByVal endRow As Long, _
ByVal colClassName As Long, _
ByVal colFieldNames As Long)
End Sub