01 a pic x(4) value 'abcd'
01 b pic 9(3)
can we move from a to b.if possible what would be stored in
b.
Answers were Sorted based on User's Feedback
Answer / chuvabe
no. cannot. because b is numeric. alpanumeric cannot move
to numeric field.
Is This Answer Correct ? | 3 Yes | 4 No |
Answer / shibin shah
alpha numeric value cant be stored in integer data type ....
so b will b contain junk valueeee...
Is This Answer Correct ? | 0 Yes | 1 No |
Answer / shiva
no we cannot move alphabet in to a numeric field....
Is This Answer Correct ? | 0 Yes | 1 No |
Answer / sadaf rehan
abc will moved to a and 'd' will get teminating
Is This Answer Correct ? | 1 Yes | 5 No |
Answer / manish shelke
YES, we can move . But the a will contained only ABC and D
will get truncated
Is This Answer Correct ? | 5 Yes | 12 No |
if a dataset is already created with fixed length but after that i want to change fixed length to variable length then how is it possible
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
When search all is used in cobol program without sorted input data?
6 Answers CGI, Principal Finance,
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
how will u code parm parameter and where pls ?
What are the pertinent COBOL commands?
WE HAVE 2 FILES IN COBOL. ONE IS FIXED LENGTH RECORDS ANOTHER ONE IS VARIABLE LENGTH. IF I DECLEAR LRECL OF FIXED ONE AS 80 AND 2ND RECORD AS 132. WHAT WE NEED TO DECLEAR LRECL FOR THOSE 2 FILES IN JCL?
what if any ,is the syntex error in the following piece of code 01 B PIC A(7) 02 C PIC 9(4) ........ IF(B NUMERIC) ADD 10 TO C a.the condition in the if statement is wrong b.noting is wrong c.because C is initialised.ADD 10 TO C is wrong d.both B and C shoud have same size.
how to transfer the file from pc to mainframe??
Suppose i have a variable with s9(18)v99 comp3 . what is the size of variable . If s9(18) comp3 is 10 bytes . There should be some difference between two allocations ? Thanks krishna chaitanya
i want to use only first 100 records from a file.plz tell me how to write JCL for this(for read,copy,write operations).plz give me details of all posible JCL utilities?
how do u list the abended jobs?