Page 1 of 1

Examples of cobol program on as400

PostPosted: Tue Jul 06, 2010 3:12 pm
by Arielz
Hello everybody
Nowadays i learning cobol on as400 computer

if anybody have an example of cobol program that combines(PF LF display files and Printer files) so please send me this.

Arielz

Re: Examples of cobol program on as400

PostPosted: Wed Jul 07, 2010 1:45 am
by NicC
I would look at the AS400 Cobol manual - I did when I had to migrate a PL/1 program to AS400 and there was no problem - OK, I looked at the AS400 PL/1 manual but the COBOL manual will show you how to code files. Basically, it will be the same as how you code them to run on a PC -

SELECT file-name-in-pgm ASSIGN TO 'real path\file'