× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I encountered a typical problem. I will describe it detail.
Before Y2K conversion my code in a program looks like this
This is a datastructure to manipulate date. All except SINDT is from File.
  * DS for Invoice Date                     
 I            DS                                        
 I                                       1   60SINDT  
 I                                       1   20SINYY  
 I                                       3   40SINMM  
 I                                       5   60SINDD  

SINDT is used to move another file field.  After Y2K Conversion the dates
coming from here were not correct. Code after Y2K conversion looks like
this.

             * DS for Invoice Date

            I            DS

 Y2CHGI*                                       1   60SINDT               
 Y2CHGI                                        1   80SINDT               
 Y2CHGI*                                       1   20SINYY               
 Y2BCVI*                                       1   40SINYY               
 Y2BRVI                                        1   40PGINYY              
 Y2BRV * 'SINYY' IS RENAMED & EXPANDED AS 'PGINYY'.                      
 Y2CHGI*                                       3   40SINMM               
 Y2CHGI                                        5   60SINMM               
 Y2CHGI*                                       5   60SINDD               
 Y2CHGI                                        7   80SINDD               

In short SINYY is removed from data structure and replaced by PGINYY. while
reading from file SINYY is passed on to a conversion routine and passed on
to PGINYY as 4 digit.

I did'nt felt anything wrong on this, So I used ISDB to debug it. When I am
trying to check the value of SINYY it says that variable not available in
the program. Remember that SINYY is a file field and the file is declared in
the program. Why is it so ? 
(My description seems to be very long....? Pardon me..!! )


Regards,

Praveen Marath
praveenm@alfuttaim.co.ae

Phone 

Off. (Direct) : 3027232 
Off. (Ext.)    : 599966 - 232 
Res             : 221919 - 504  


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the RPG/400 Discussion Mailing List!  To submit a new         *
* message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
* from this list send email to MAJORDOMO@midrange.com and specify       *
* 'unsubscribe RPG400-L' in the body of your message.  Questions should *
* be directed to the list owner / operator: david@midrange.com          *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.