Which of the following EDITind and PICTURE symbols is to be
used if a
minus(-) is to appear before the value if the value is
-ve and a plus(+)
is to appear before the value if the value is +ve?
(a) +
(b) -
(c) + OR
(d) It is not possible
Answers were Sorted based on User's Feedback
Answer / guest
Correct answer is +. If we used + than it will print + for
positive value and - for negative value.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / swappy
Answers #1 and #3 are correct. "+" is used to display +ve
as well as -ve sign. "-" is used to display a -ve sign when
the no. is -ve.
| Is This Answer Correct ? | 1 Yes | 1 No |
How to declare if emp-name = AAAAA""BBB in working-storage section. After display emp-name should print like AAAAA""BB
how will u code parm parameter and where pls ?
How to delete leading spaces/blank in COBOL ? Example:- 01 data-name-1 pic x(220) " English is a language". I would like to delete leading spaces.
In a file if a column account number conatain value 0001234.. how can we move the value to another variable without zero. value may contain any type such as 00123405. we need the value 1234 or 12305. how can we do that in cobol. Please help.
if a file has 1000 recods how copy the records from 1 to 100 records using sort
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
I have two questions here. 1. How to read a flat file in reverse order? 2. How to read a VSAM KSDS file in reverse order? In both the cases we donot know the total number of records.
1)what is the maximum limit for occurs? Eg: 01 A PIC X(10) OCCURS N TIME. What is the max value for N?
i have n records in one file and in this file there is some fields and i want to count that how many sharma in my file so plz give the coding that how we read sharma ?
What is Alternate Index ? How is it different from regular index ?
What is the significance of 'above the line' and 'below the line'?
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech