Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Type tree reading

Type tree reading

Type tree reading


I'm trying to read the file which has multiple MQheader + messages in a file(doesn't have any terminators),Could someone help me how could I read each message and process it,

File looks like:


I would like to read this file and process each message separately(MD......MQSTR...Message).

Thanks in advance.


RE: Type tree reading

lack of terminators will make it challenging.  Things that would help would be initiators, delimiters and fixed lengths.  Even with those you may have issues.  Where does segment end if it's defined as text and you can't define a way for the map to identify the end of data.  Post fix delimiters might help, Component rules may als help but depending on your data....

RE: Type tree reading

Looks like your file is one whole continuous record. One possible way is to UNSTRING your file delimited by "MD" and this will create a sequential file that you can use for your tree. Or is there a way that you could use "MD" as your terminator?

RE: Type tree reading

Unstringing might work if you don't have to worry about a stray "MD" (or other delimiting value) impacting the process.

definitely worth testing...

RE: Type tree reading

Thanks guys! Let me try...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close