How do we get current date from system with century?

Answers were Sorted based on User's Feedback



How do we get current date from system with century?..

Answer / aji cherian

Current date will show yymmdd format. Add 2000 to yy part.

Is This Answer Correct ?    5 Yes 7 No

How do we get current date from system with century?..

Answer / avinanda mukherjee

Using current_date, it returns CCYYMMDD...

Is This Answer Correct ?    5 Yes 10 No

Post New Answer

More COBOL Interview Questions

Define static linking and dynamic linking.

0 Answers  


The order of precedence of arithmetic operators in an expression can be overridden with the use of (a) [] (b) () (c) {} (d) Any of the above

3 Answers   TCS,


Can JUSTIFIED be used for all the data types?

3 Answers  


How to resolve the soc4 & soc7 other than following answers. Soc4 can resolved using mispleed dd name and dd name is not matching with file and soc7 check the sysdump and copy the offest address then correct it in the program.

10 Answers   ADP, Amdocs, Cap Gemini, Keane India Ltd, Super Value, TCS,


how to display the dataset information?

2 Answers  






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

0 Answers  


What is the LINKAGE SECTION used for?

4 Answers  


Identify the invalid dataname from the following: (A) savings-account (B) annual-allocation-for-overhead (C) samount250 (D) 12demand

4 Answers   TCS,


how to remove leading spaces and zeroes in a cobol variable.is there any easy way to do it

2 Answers  


tell me about examine inspect and evaluate ?

2 Answers   CTS,


What is the meaning of 'Eject' verb in cobol?

2 Answers   TCS, Wipro,


Why we should use cursor ?

3 Answers  


Categories