Praveen
Praveen

Reputation: 113

Running a COBOL program in AS400

We're trying to migrate our application from Mainframe to AS400. We have sent our COBOL program to AS400 and compiled it in AS400 successfully after a lot of struggle as none of my team mates have experience in AS400. We're now stuck with running the COBOL program. The sample CL programs that we have checked and the stuff over internet didn't do any good.

So, Can somebody provide a sample program for running a COBOL program in AS400? The COBOL program has two input files and one output file. The input files are present in the AS400 library. And, how to create an indexed file(like KSDS VSAMs in Mainframe)? A brief explanation about the commands would be a lot better.

Upvotes: 1

Views: 2512

Answers (1)

David G
David G

Reputation: 4014

It's pretty simple...

CALL COBOLPGM PARM('PARM1' 'PARM2')

To create the output file, you will either need the DDS source and compile it with the CRTPF command or use SQL DDL to create it using your favorite SQL environment or the STRSQL command.

Upvotes: 2

Related Questions