naresh


{ City } bhimavaram
< Country > india
* Profession * mca
User No # 71893
Total Questions Posted # 0
Total Answers Posted # 2

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 1
Users Marked my Answers as Wrong # 0
Questions / { naresh }
Questions Answers Category Views Company eMail




Answers / { naresh }

Question { CGI, 9012 }

How to Convert 2010/02/11 to m/dd/yyy.. with string and
without string if any other method... code


Answer

01 date-input
05 DATE-YYYY PIC 9(04).
05 FILLER PIC X(1).
DATE-MM PIC 9(02).
FILLER PIC X(1).
DATE-DD PIC 9(02).
01 date-output
05 DATE-YYY PIC 9(03).

05 DATE-M PIC 9(01).
05 DATE-DD1 PIC 9(02).
accept date-input.
move date-yyyy to date-yyy.
move date-mm to date-m.
move date-dd to date-dd1.
display date-output

Is This Answer Correct ?    1 Yes 0 No

Question { HSBC, 8079 }

What is tne need to use sub programs in Cobol?


Answer

reusability...........and subprogram can be used number of
times and call subprogram using 'call'
statement............inthis both supprogram and mainprogram
have same structure.........

Is This Answer Correct ?    0 Yes 0 No