Friday, November 25, 2011

Steps to write a cobol program


  1. create a PDS
  2. create member.
  3. edit member code cobol pegàsour.cobol.pg
            a) use 88 level no of multiple conditions
b)use evaluate to avoid nested if
c) use 77 for independent datanames
d) decide the pge into manageable paragraphs
e) use the para nos in asc order
f) define user defined variables with more meaningful names
g) user arrays for effective peg process.
h)avoid goto
i)use separate exit statement for all performs.
     4. prepare compilation jcl use existing jcls.
     5. submit a peg for compilation.
     6. enter into spool check for the compilation job statements
     7. if there are any errors rc will be non zero
     8. open a compiled peg and find for errors
     9. when compilation and link step /activities/ 00 prepare run jcl with data file and
         object jcl.
    10. submit jcl to execute cobol.
    11. identify output
    12. if the data is stored in the file open the file by using ispf panel
    13. if o/p is matching with the requirements that peg
    14. then inform to project       leader by mail or phone.

No comments:

Post a Comment