× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



In this location, we store a series of statements in a source member,
that create the file object and apply the label text and column
headings. This "source" is then "compiled" with the RUNSQLSTM command.


Here's an abridged sample:
CREATE TABLE PGPAPPLOGR (
JOB_NAME for column LOGJOBN
CHAR(10)
CCSID 37
not null default '' ,
JOB_USER for column LOGJOBU
CHAR(10)
CCSID 37
NOT NULL DEFAULT '' ,
JOB_NBR for column LOGJOB#
CHAR(6)
CCSID 37
NOT NULL DEFAULT '' ,
EVENT_TS for column LOGEVTTS
TIMESTAMP
NOT NULL ,
EVENT_TYPE for column LOGEVTTYP
CHAR(10)
CCSID 37
NOT NULL default '',
EVENT_MSG for column LOGEVTMSG
CHAR(80)
NOT NULL default '');

RENAME TABLE PGPAPPLOGR TO PGPAPPLOG;

LABEL ON COLUMN PGPAPPLOG
( JOB_NAME IS 'Job ID Name ' ,
JOB_USER IS 'Job ID User ' ,
JOB_NBR IS 'Job ID Number ' ,
EVENT_TS IS 'Event Timestamp ' ,
EVENT_TYPE IS 'Event Type ' ,
EVENT_MSG IS 'Event Message ');



-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Tom Deskevich
Sent: Wednesday, April 29, 2009 3:51 PM
To: IBM i / System i
Subject: Confused about DDL and DDS

I have been searching through the archives and the web.

I want to create a data base file using DDL. Is DDL just a text file
created with PDM with a CREATE statement in it? I did not see any
examples anywhere except CREATE statements. I never saw the equivalent
of DDS for the CREATE to look at.

I do not see a source type DDL in PDM.

Signed, confused in Ebensburg...

Tom Deskevich
Infocon Corporation
Phone 814-472-6066
Fax 814-472-5019



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.