What is ASKTIME, SUSPEND



What is ASKTIME, SUSPEND..

Answer / naidu sekhar yandrapu

ASKTIME
Asktime command is used to request the current date and time

EXEC CICS
ASKTIME(WS-DATE)
ABSTIME
END-EXEC
FORMAT TIME is used date and time

EXEC CICS
FORMAT
YYYYMMDD(WS-DATE)
DATESEP("/")
MMDDYYYY(WD-DATE)
DATE("-")
HHMMSS(WS-TIME)
TIMESEP(";")
MMHHSS(WS-TIME)
TIMESEP(":")
END-EXEC.
SUSPEND:
TO SUSPEND THE EXECUTION OF TASK

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

give the examples for strings and unstrings in cobol

2 Answers   IBM,


Can we move SPACES to numeric field and ZEROES to alphabetic field? If yes what are the way doing this?

6 Answers   T systems,


What is the difference between subscript and index?

1 Answers  


Which of the following paragraphs is compulsory in every COBOL program? (a) SPECIAL-NAMES (b) PROGRAM-ID (c) FILE-CONTROL (d) OBJECT-COMPUTER

4 Answers  


How many divisions we have in Cobol ?

4 Answers   Wipro,






given the following: 77 A PIC 9V9 VALUE 9.5 77 B PIC 9 VALUE 9. 77 C PIC V9 VALUE 0.8 77 D PIC 9 77 E PIC 9 77 F PIC 9V999 what are the contenta of D E nad F after the following statements are executed: COMPUTE F ROUNDED=A+C/B MULTIPLY A BY C GIVING E ADD B C A GIVING D ROUNDED a.F=9.589 E=8 D=1 b.F=9.589 E=8 D=9 c.F=9.589 E=7 D=9 d.F=9.589 E=7 D=1

5 Answers   Broadridge, TCS,


What are the access modes of START statement?

0 Answers  


01 a pic 9(6) value is 123456 01 b pic 9(3) move a to b wht will be the value ?

6 Answers   Patni,


In a program, variables are used but no DB2 involved in it. Can you call it as host variables??

4 Answers   EDS,


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

0 Answers  


What is IMPACT analysis?

2 Answers   IBM,


Hi, My interviewer ask A calls B and C calls B, a and b are static c and b are dynamic.what happens if they compile and execute at same time.

3 Answers   iGate,


Categories