ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

F-Specification

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • F-Specification

    Hi All,

    When file is declared in Output mode and file addition also specified. what is it mean.
    Please explain.

    Thanks in advance,
    Vishal.

  • #2
    Re: F-Specification

    Hello Sir,

    file open in output mode means you are going to write or perform write operation on that file and A stands for addition of record.

    A is used when you are adding record to data base file.


    Pramendra Pandeya
    Young people knows how to run fast but old people knows the way..

    Comment


    • #3
      Re: F-Specification

      Hi Pram,

      Then why do we need both, output mode & Addition.
      what is difference b/w, "O" (O/p mode without file addition) and "O" "A" (O/p mode with file addition)?

      Please explain me.

      Thanks in advance,
      Vishal

      Comment


      • #4
        Re: F-Specification

        Hi,
        You can add record by only defining O in File Type.
        You also can write the data without defining 'A'
        *E.G:SPL01 O E DISK
        Its not compulsary to write A with Output File

        Comment


        • #5
          Re: F-Specification

          Hi Sushma,

          Thanks a lot.

          when i am referring our production programs, they r using output files in this way.
          I am always use "O" only, just asking any difference when we use both (O & A).

          ok thanks sushma.

          Comment


          • #6
            Re: F-Specification

            From the ILE RPG Reference Manual
            Position 20 (File Addition) [on output spec] indicates whether records are to be added to an input or update file. For output files, this entry is ignored. [If A is specified in position 20] records are to be added to an input or update file.
            Last edited by Mercury; November 20, 2009, 07:27 AM.
            Philippe

            Comment


            • #7
              Re: F-Specification

              Originally posted by Mercury View Post
              From the ILE RPG Reference Manual
              Position 20 (File Addition) [on output spec] indicates whether records are to be added to an input or update file. For output files, this entry is ignored. [If A is specified in position 20] records are to be added to an input or update file.
              WOW!!! you mean to tell me there's a reference manual that can tell me the answers to basic RPG 101 questions? who woulda thunk it!!!
              I'm not anti-social, I just don't like people -Tommy Holden

              Comment


              • #8
                Re: F-Specification

                I did not dare to say RTFM
                Philippe

                Comment

                Working...
                X