Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to process a file position wise also check for data valu

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> HomeWorks & Requests
View previous topic :: :: View next topic  
Author Message
IBM MINAKSHI

New User


Joined: 30 Dec 2012
Posts: 3
Location: India

PostPosted: Sun Dec 30, 2012 1:49 pm    Post subject: How to process a file position wise also check for data valu
Reply with quote

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
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Sun Dec 30, 2012 2:01 pm    Post subject: Reply to: How to process a file position wise also check for
Reply with quote

how do You determine that a <message> field exists/is valid ???
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Dec 31, 2012 8:00 pm    Post subject: Reply to: How to process a file position wise also check for
Reply with quote

Hello and welcome to the forum,

You will be much better served in our Beginners and Students forum.

www.ibmmainframeforum.com/index.php

Please register there. A question this basic does not really belong in an "expert" forum.

Thank you,

d.sch
Back to top
View user's profile Send private message
IBM MINAKSHI

New User


Joined: 30 Dec 2012
Posts: 3
Location: India

PostPosted: Wed Jan 02, 2013 11:26 pm    Post subject: Re: Reply to: How to process a file position wise also check
Reply with quote

Thanks for guidance.

dick scherrer wrote:
Hello and welcome to the forum,

You will be much better served in our Beginners and Students forum.

www.ibmmainframeforum.com/index.php

Please reginster there. A question this basic does not really belong in an "expert" forum.

Thank you,

d.sch
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Jan 03, 2013 12:57 am    Post subject: Reply to: How to process a file position wise also check for
Reply with quote

You're welcome - see you there icon_smile.gif

d
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> HomeWorks & Requests All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us