Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how can we get current dat and time thru cobol pgm

Answer Posted / vinodquestion

HI friend,

Move function CURRENT-DATE to dt.

Here dt is a working storage variable.

If you want exactly date and time do this

Instead of CURRENT-DATE in above statement write this.

CURRENT-DATE(1:16)

That is using referential modification.

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do you reference the rrds file formats from cobol programs

1581


What are the different rules of SORT operation?

1146


Which division and paragraphs are mandatory for a COBOL program?

1278


Which Search verb is equivalent to PERFORM…VARYING?

1043


Discuss about changing dataset name in proc.

1235


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

5374


How to use the same COBOL program in Batch and CICS on lines? explain with an example

2395


What is the difference between comp and comp-3?

1186


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

2080


What is redefines clause in COBOL?

1295


What is the LINKAGE SECTION used in COBOL?

1530


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

2965


What is the usage of comp fields in cobol?

1188


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

1123


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

1358