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
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
) How do u handle errors in BMS macro?
What are the different rules of SORT operation?
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
How to print 10 to 1 if the input have only 10 digit number?
IF I mention stop run in CICS what happens?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
how do you reference the variable unblock file formats from cobol programs
How to know whether the module is dynamical or statistical?
how to access the file from prodution from changeman tool and to submit a file to production
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
how do you reference the rrds file formats from cobol programs
I have a File that has duplicate records. I need only those records that occur more than thrice.?
What are declaratives and what are their uses in cobol?