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...

How to Convert 2010/02/11 to m/dd/yyy.. with string and
without string if any other method... code

Answer Posted / mvrk

The above issue can be resolved by using REDEFINES clause.

01 DATE-FIELD
05 DATE-YYYY PIC 9(04).
05 DATE-MM PIC 9(02).
05 DATE-DD PIC 9(02).
01 DATE-CONT REDEFINES DATE-FIELD
05 DATE-MM-CONT PIC 9(02).
05 DATE-DD-CONT PIC 9(02).
05 DATE-YYYY-CONT PIC 9(04).

I guess the above declaration will resolve it. I have not
tested it.

Friends, please correct me if i am wrong.

Is This Answer Correct ?    1 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between comp & comp-3?

949


What is input procedure?

988


Explain how to convert 2010/02/11 to m/dd/yyy.. With string and without string if any other method... Code?

1141


What are fillers? What is the actual use of fillers? With mall/simple example?

993


I like to know if possible to use %TRIM or any statement with prefiv "%" like RPG ile programs. thanks

2475


Explain the output procedure?

1024


What is sort? And its syntax?

1028


Explain the input procedure?

932


What are the types of perform?

1016


Explain the syntax of sort?

964


Define perform?

990


Explain the difference between section, paragraph and sentences?

964


What is comp?

1139


Define perform? And its types?

976


How to update data area in cobol 400 program?

1035