ID DIVISION. PROGRAM-ID. PLO. DATA DIVISION. WORKING-STORAGE SECTION. 01 VAR1 PIC 9(2). 01 VAR2 PIC X(2). PROCEDURE DIVISION. ACCEPT VAR2. MOVE VAR2 TO VAR1. STOP RUN. if i give 'PI' in var2 then what will b output of progr. any abend?????
TCS,
6 14538can u give result for the fallowing example... 05 a pic 9(2) 05 b redifines a pic x(2). move 'xy' to b. display a,b.
IBM,
10 12714SUPPOSE I HAVE 60 CHARACTERS STING. IN THAT I WANT FIND OUT HOW MANY TIMES 'A'(ASSUME)WILL REPEATED AND I HAVE TO PASS 'E' IN PLACE OF 'A'ALONG THAT STRING.
2 6924)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
IBM,
2011
How do you define a variable of comp-1 and comp-2?
how to move the records from file to array table. give with code example
Differentiate between structured cobol programming and object-oriented cobol programming.
What is rmode(any) ?
what happens if parmparameter passes zero bytes to the program
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
What are the various section in data division and briefly explain them.
) How do u handle errors in BMS macro
What rules are to be followed while using the corresponding options?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
Why occurs cannot be used in 01 level in COBOL?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
How arrays can be defined in COBOL?
Explain how you can characterize tables in cobol?
Discuss about changing dataset name in proc.