Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Sending data is aplhabetic size 7 (value 3000), I wantated
this value to be stored in database, which is defined as
s9(7)v9(2)comp-3.

Answer Posted / guest1

In the above answer the group contains a PIC clause. It
wrong. Group item should not contain any PIC clause.
01 ws-in-alpha pic x(7).
01 ws-in-numeric redefines ws-in-alpha.
05 ws-data pic 9(7)v99.

01 ws-actual-data pic s9(7)v99 comp-3.

In procedure division,
move ws-in-numeric to ws-actual-data.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do you reference the printer file formats from cobol programs

1141


What is amode(24)?

1187


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

1317


Discuss about changing dataset name in proc.

1173


Whats the difference between search & search ALL?

6364


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

1291


What is the difference between a binary search and a sequential search what are the pertinent cobol?

1093


What is Pic 9v99 Indicates in COBOL?

1178


How to print 10 to 1 if the input have only 10 digit number?

1217


Which division and paragraphs are mandatory for a COBOL program?

1192


What are 77 levels used for?

1052


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

1257


What is difference between static and dynamic call in cobol?

1301


What rules are to be followed while using the corresponding options?

1017


What are the cobol coding sheets?

1174