View previous topic :: View next topic
|
Author |
Message |
mittalrishi Currently Banned New User
Joined: 19 Dec 2005 Posts: 12
|
|
|
|
) How to run a JCL from COBOL program, plz try to give the code/logic.
2) What does RETURN command do in COBOL.
3) plz check the code ,
IDENTIFICATION DVISION.
PROGRAM-ID. STR.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 A PIC A(4).
01 B PIC A(6).
PROCEDURE DIVISION.
ACCEPT A. (I/P IS :- AMAL)
ACCEPT B. (I/P IS :- KISHOR)
MOVE A TO B.
DISPLAY B. (What will be the O/P)
STOP RUN.
Q)Here if i move A to B , string AMAL is moved ,and KISHOR is wiped totally ,
but as alphabetic sequences are concerned ,it starts from the left hand side(MSB).
so B must have AMALOR ,but it has AMAL .
why is it so. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
1) Do a search for INTRDR
2) Sets the return code of the pgm that is used bt the COND or IF clause in you JCL.
3) It pads the receiving field w/spaces when the end of the sending field is reached. |
|
Back to top |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
Back to top |
|
|
|