View previous topic :: View next topic
|
Author |
Message |
IBM MINAKSHI
New User
Joined: 30 Dec 2012 Posts: 3 Location: India
|
|
|
|
Hi,
Please help me in getting answer for a question related to file processing in a COBOL program and create an output file. Input file has 10 message fields, i need to write an output records per message. i.e. if file has data for only message1 field then need to write one o/p records, if file has data for message1,message2 then need to write two o/p records and so on. means every time i need to check message field and write an o/t record if message fields has data. file layout is below-
source x(3)
Account number length x(15)
id length x(8)
ccode x(3)
message1 x(30)
message2 x(30)
message3 x(30)
message4 x(30)
message5 x(30)
message6 x(30)
message7 x(30)
message8 x(30)
message9 x(30)
message10 x(30) |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
how do You determine that a <message> field exists/is valid ??? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forum,
You will be much better served in our Beginners and Students forum.
Use [URL] BBCode for External Links
Please register there. A question this basic does not really belong in an "expert" forum.
Thank you,
d.sch |
|
Back to top |
|
|
IBM MINAKSHI
New User
Joined: 30 Dec 2012 Posts: 3 Location: India
|
|
|
|
Thanks for guidance.
dick scherrer wrote: |
Hello and welcome to the forum,
You will be much better served in our Beginners and Students forum.
Use [URL] BBCode for External Links
Please reginster there. A question this basic does not really belong in an "expert" forum.
Thank you,
d.sch |
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
You're welcome - see you there
d |
|
Back to top |
|
|
|