Write PF using RPGLE

40 pts.
Tags:
RPGLE
RPGLE Program
HI ... I tried to add a rec in my PF (sample1).. but my PGM run successfully .. but the rec haven't added in my PF .... I shared my PGM here sample1 uf a e k disk usropn open sample1 eval empname='Sathis' eval empno=13 eval addr='ramnad' write rec close sample1 eval *inlr=*on Please help me on this

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: 6  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
    The program works for me with no significant changes. I created my SAMPLE1 table with SQL, so I did add a RENAME() keyword for the record format to get the REC format name. But it worked as written.   So, it doesn't seem to be a problem with the program itself.   That means that the program didn't run successfully (perhaps didn't run at all), or it added a record to a copy of the file, or it ran under commitment control and didn't commit the record, or...?   More info is needed. The file description might help, but you should verify that everything is configured as you think it is.   Tom
    125,585 pointsBadges:
    report
  • ravula
    Fpf01      uf a e           k disk    usropn   
    C                   open      pf01             
    C                   eval      eno=100          
    C                   eval      ename='xyz'      
    C                   eval      esal=40000       
    C                   write     format           
    C                   close     pf01             
    C                   eval      *inlr=*on        
    700 pointsBadges:
    report
  • ravula
    i am able to write a record successfully not sure why you are not able to do , for your information , i have given you the code which might help full to you. Ravula
    700 pointsBadges:
    report
  • CharlieBrowne
    Is it a library list problem?
    41,430 pointsBadges:
    report
  • philpl1jb
    Perhaps there is a gap in our understanding 
       of what you've done.
    
    
    Your program compiled successfully?  
       What did you do, how do you know this?
    
    
    Your program ran successfully?  
       What did you do, how do you know this?
    
    
    Your program didn't add a record?  
      What did you do, how do you know this?
    
    51,355 pointsBadges:
    report
  • ToddN2000
    Have you tried to debug your program?  Check if there is another instance of your file in a different lib. Is your program running interactive or batch? Check the objects, pgm and file to see when they were last used. Get some more data the check back for more answers.
    15,605 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