INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

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!

*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.

Jobs

Newby questions.

Newby questions.

(OP)
Hello,
Have a Rexx program that I am trying to modify.
1) DO WHILE LINES(inventoryfile)
PARSE VALUE LINEIN(inventoryfile) WITH 16 ALTPART 27 . 133 MIVINTXCODE 134 . 210 MIVLSTVEND 220 MANUALCOST 230 . 290 MIVONHANDAMT 299 . 343 MIVPRICE1 353 . 373 MIVPRODCOD 398 MIVPRODDESC 430 . 517 MIVXSRETAIL 528 .

How do I output this file so I can determine the position of an additional field?

2) Can I see/output the PARSE VALUE?

Thank you for the help...

Sorry for the new-by questions. Just trying to wrap my head around this.

RE: Newby questions.

"PARSE VALUE LINEIN(inventoryfile) WITH" - you cannot see any of this - it is language keywords. You can see the value from inventory file by reading it into a variable in a previous statement and "SAY"ing the variable...

CODE -->

myVar = Linein(inventoryfile)
Say myvar 
The rest of your PARSE line is a template which starts like this:
16 ALTPART 27 - store the data from position 16 of the chunk of data read by linein up to position 26 in variable ALTPART
27 . 133 - the chunk of data from columns 27 to 132 - discard
etc
After PARSEing the line you can SAY the various values.

It is all in the manual. PARSE comes under KEYWORDS in the contents but usually has a later section all to itself to explain the various options.


Nic

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!

Resources

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