Writing data into a Flat file using COBOL/400

555 pts.
Tags:
AS/400
COBOL/400
Hi Group,
I have created a flat file (file with just record length) Now i would like to pass data into it through a COBOL/400 pgm. 
How to define that flat file in cobol/400 and write data into it?
Regards,
MVRK

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    I don't quite understand the problem. (Assuming that you mean a 'program described' file...) You work with a "flat file" in COBOL like any SEQUENTIAL disk file. What problem are you having? What coding have you tried? Tom
    125,585 pointsBadges:
    report
  • mvrkrishna
    Yes Tom, Its an program described file.
    555 pointsBadges:
    report
  • abhisheka1
    Records and fields for a program-described file are described by coding record descriptions in the File Section of the COBOL program instead of using the Format 2 COPY statement.
    The file must exist on the system before the program can run, except when you use dynamic file creation, by specifying GENOPT(*CRTF) on the CRTCBLPGM command. Please elaborate your problem so that we could find the core of issue you face. Share sample code please 
    400 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following