Examples of cobol program on as400

Arielz
Posts: 1
Joined: Tue Jul 06, 2010 3:03 pm
Skillset: cobol programmer
Referer: google

Examples of cobol program on as400

Postby Arielz » Tue Jul 06, 2010 3:12 pm

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

NicC
Global moderator
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
Referer: Google
Location: Pushing up the daisies (almost)

Re: Examples of cobol program on as400

Postby NicC » Wed Jul 07, 2010 1:45 am

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'
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic