Longtable Problem

Tabellen und Grafiken erstellen und anordnen


Mr. Burns
Forum-Newbie
Forum-Newbie
Beiträge: 4
Registriert: Mi 20. Jul 2011, 21:06

Longtable Problem

Beitrag von Mr. Burns »

Hallo ich bin neu hier im Forum und habe gleich mal eine Frage.
Ich erstelle gerade eine Tabelle, diese soll automatisch am Seitenende umbrechen. Um das zu bewerkstelligen bin ich auch longtable gestoßen. Ich habe als erstes die Doku genommen um zu versuchen da durchzusteigen, aber ich komme einfach nicht weiter.
\begin{longtable}{| p{3cm} | p{3cm} | p{9.5cm} |}
\firsthline
Bezeichnung & Command & Beschreibung \\\hline
\endfirsthead
Bezeichnung & Command & Beschreibung \\\hline
\endhead

\hline
\par Element & \par ELEM & \par Used to define the elements of a mixed list (list elements)parameter on a command. A list parameter is a parameter that accepts multiple values that are passed together as consecutive values pointed to by a single keyword.
\par A maximum of 300 ELEM statements is allowed in one list.
\par The order in which you enter the ELEM statements into the source
file determines the order of the elements in the list.
\par The first ELEM statement must have a statement label that
matches the statement label on the TYPE parameter on the PARM
or ELEM statement for the list.\\
\hline
\endfoot

\hline
\par Qualifier & \par QUAL & \par Describes one part of a qualified name. If a name is the allowed value of a parameter or list element defined in a PARM or ELEM statement, it can be changed to a qualified name by using a QUAL statement for each qualifier used to qualify the name.\par A maximum of 300 qualifiers is allowed for a qualified name. The order in which you enter the QUAL statements into the source file determines the order in which the qualifiers must be specified and the order in which they are passed to the validity checking program and command processing program.\\
\hline
\endlastfoot


\hline
\par Command & \par CMD & \par Only one CMD statement must be used and specifies the prompt text for the command being created.
\par The CMD statement can be anywhere in the source file that is referred by the Create Command (CRTCMD) command, even if no prompt text is specified for the created command.
\par Several create option parameters on the CRTCMD command can also be specified on the CMD statement. The command creation parameters on CMD do not have default values. If no value is specified, the value specified or defaulted on the CRTCMD command is used to create the *CMD object.
\par CMD PROMPT('Promt Text') ===> Promt Text (CMDNAME)\\
\hline


\par Parameter & \par PARM & \par A maximum of 99 PARM statements is allowed. The order in which you enter the PARM statements into the source file determines the order in which the parameters are passed to the command
processing program (CPP) and validity checking program (VCP).
One PARM statement is required for each parameter that is to be
passed to the command processing program.
\par To specify a parameter as a key parameter, you must specify
KEYPARM(*YES) for the PARM statement. The number of
parameters coded with KEYPARM(*YES) should be limited to the
number needed to uniquely define the object to be changed.
To use key parameters, the prompt override program must be
specified when creating the command.
\par Key parameters cannot be defined with PMTCTL(*PMTRQS) or
PMTCTL(label).\\
\hline

\end{longtable}
Es wird zwar erkannt, dass
\par Qualifier & \par QUAL &....
, wegen endlastfoot, die letzte Zeile ist, aber eigentlich ja am Ende der Tabelle, so wird einfach am Ende der Seite aufgehört. Eigentlich sollte
\par Element & \par ELEM &.....
die letzte Zeile auf der ersten Seite darstellen, wegen endfoot, aber das wird komplett ignoriert. Ich habe hier nur vier Zeilen drin, eigentlich sind es mehr, sobald ich aber noch die restlichen Zeilen dazu schreibe, welche eigentlich automatisch auf eine neue Seite umgebrochen werden sollte, gibt es eine Fehlermeldung, weil die Seite zu Ende ist.

Vielleicht kann mir bitte jemand helfen!