How do you fetch current date in normal cobol pgm and in
cobol-db2 pgm?

Answer Posted / adithya

procedure division.

accept a from date.

accept b from date

accept c from day-of-week

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8650


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2337


) How do u handle errors in BMS macro?

1606


Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks

2581


State the various causes of s0c1, s0c5 and s0c7.

833






What kind of error is trapped by on size error option?

941


how do you reference the variable block file formats from cobol programs

908


For rewrite, why is it mandatory that file needs to be opened?

821


what is search and searchall?what is the diffrence between them?give an best example?

6104


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

826


Difference between cobol and cobol-ii?

924


What is inspect in cobol ?

984


how can i see junk values in dclgen or in hostvariable of comp ?

2738


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

841


When is inspect verb is used in cobol?

898