Professional Documents
Culture Documents
1. copy statement:
COPY copybookname REPLACING ==oldfield== BY ==newfield==
----
2. How to edit comp-3 variable in cobol?
We cant move the variable of type S9(10)V99 COMP-3 to ALPHANUMERIC directly.
Plz declare a intermediate variable of type +9(10).99 and move it to the alphanu
meric.. It works.
In your case if we take the exmaple of date and define the variable as
"WS-DATE PIC 9(8) COMP-3 VALUE 20101010."
"WS-DATE-TEMP PIC 9(8)."
Hence, you can even use COPY for your DCLGEN's but you may get a return code of
4 from the precompiler because the pre-compiler searches for the host variables
used in a query and if it does not find them returns 4.
-----------------------
5. why we cant use occurs in 01level when it is defi...
there is repeat field with the same format not the record.
-------------
6. 77 WS-AMT PIC ZZZ999.
ADD 100 TO WS-AMT WILL RESULT IN
a) COMPILATION ERROR - i guess.. because numeric op not possible on edited item
s
b) SOC7 ERROR
C) NO ERROR
----
7. 77 I PI 9.
PERFORM VARYING I FROM 1 BY 1 UNTIL>10
DISPLAY 'OK'
END-PERFORM.
What output/msg is likely when this program is executed thru JCL?
----
differnece b/w systsin and sysin?
SYSTSIN is the standard input DD (i.e. Terminal Input) for either the TSO progra
m (IJKEFT**) or the REXX interpreter (IRXJCL).
SYSIN is a standard input DD, usually used to supply run-time parameters to the
associated program.
to continue a line in sysin or systsin use -
do until always executes one time
do while we can save w/o executing
------------