Friday, May 21, 2010

How can i correct my errors in COBOL?

this are my errors and i dont know what to do coz im new to cobol. tnx





MSGID: LBL0032 SEVERITY: 10 SEQNBR: 007800


Message . . . . : COPY DDS done on null-capable field


'VOUCHDT'. Accepted.


MSGID: LBL0560 SEVERITY: 10 SEQNBR: 007800


Message . . . . : 'VOUCHDT' has a field type that is not


correct. Alphanumeric FILLER declared.

How can i correct my errors in COBOL?
That's not your problem.





Your problem is that you're new to COBOL, an horrifying language that forces you to do the programming equivalent of playing rugby while wearing a XII century armor. Or a crab costume. If you're new to programming, try learning Python, or C.





From what I remember, a FILLER is a datatype that's hardcoded to a fixed value, and whose only purpose is to format a record in a certain way, so it meets certain obscure requirements. A FILLER is a string of characters of a fixed size, and shouldn't be able to contain a null, for example.





It seems that you're trying to copy a record that, at the position in which you declared your FILLER, contains something else, and thus it's making your program crash.





A quick solution would be to just change the FILLER in your program with an alphanumeric string of the same size. That way, you can hopefully accept whatever is coming at the record.





Of course, I repeat, the real solution is to stop with that nonsense and learn another language. If, however, you're doing COBOL because a boss told you so, then... my condolences. You have a long way to go, as you deal with the still-growling skeletons of long-dead dinosaurs made of raw metal. You probably want to look for a programmer with COBOL experience, likely a senior programmer in his sixties...

bastad clogs

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.

 
vc .net