You probably want something like:
SELECT CUSTMAST ASSIGN TO DATABASE-CUSTMAST.
Depending on the type of file and how you want to access it, you'll need
additional clauses.
For example:
SELECT CUSTMAST ASSIGN TO DATABASE-CUSTMAST
ACCESS SEQUENTIAL.
Check out this link for COBOL manuals
http://publib.boulder.ibm.com/iseries/v5r1/ic2924/index.htm?info/rzahgcobol.
htm
Have fun!
-----Original Message-----
From: cobol400-l-bounces@xxxxxxxxxxxx
[mailto:cobol400-l-bounces@xxxxxxxxxxxx] On Behalf Of Dave
Sent: Wednesday, May 29, 2013 2:33 PM
To: COBOL Programming on the IBM i (AS/400 and iSeries)
Subject: [COBOL400-L] ASSIGN clause
Hi,
I'm guessing this is obvious to a COBOL person :
I had this :
SELECT CUSTMAST ASSIGN TO CUSTMAST.
So I compiled and got this :
Message . . . . : Device type not found in ASSIGN clause.
Assumed DISK.
So I changed to this :
SELECT CUSTMAST ASSIGN TO DISK.
And the editor says this :
ASSIGN clause system-name not found/invalid. Line rejected.
I can put PRINTER in place of DISK, not that that's what I want.
What's wrong?
Thanks
--
This is the COBOL Programming on the IBM i (AS/400 and iSeries) (COBOL400-L)
mailing list To post a message email: COBOL400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/cobol400-l
or email: COBOL400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
http://archive.midrange.com/cobol400-l.
****************************************************************************
********
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer
viruses.
****************************************************************************
********
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.3343 / Virus Database: 3184/6366 - Release Date: 05/29/13
As an Amazon Associate we earn from qualifying purchases.