Clear the record format name. CLEAR RECFMT ; Chris
Clear the record format name. CLEAR RECFMT ; Chris
Your my hero! Thanks Tom
Hi! I need to write a simple RPG program that will create a record w/ unique key and all the other date,string,and char fields to be initialized to something other than NULLS. There are 255 fields. Is there a quick and dirty RPG operation to do this? I remember in COBOL I could "move spaces" or "move zeroes" to the record format mame and that would be it. thanks
Watch out moving spaces to a record format name (in COBOL). You will invariably get the infamous MCH1202 (Decimal data error) later on. Instead use the INITIALIZE COBOL verb. it performs the same function as CLEAR in RPG. You may also want to investigate the RPG RESET opcode. Dave