?
Solved

Using CHAIN to access a subfile record in FREE format ?

Posted on 2010-11-19
3
Medium Priority
?
1,923 Views
Last Modified: 2013-12-06
I would like to chain to a subfile record in FREE format.   I have done it is regular RPG, but get a compile error when I attempt it in the FREE.  Is this allowed?

I've attached a sample and error message.  

Thank You in advance!
Chain-to-subfile-record-in-FREE-.doc
0
Comment
Question by:lynn_harris
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
Gary Patterson earned 200 total points
ID: 34178653
Hi, Lynn,

The parentheses are confusing the compiler.  They make it think that you are supplying a list of key fields instead of a RRN.  Try this instead:

CHAIN X SF1FIL;

Also, X needs to be a numeric variable with zero decimal positions.

- Gary Patterson
0
 
LVL 35

Expert Comment

by:Gary Patterson
ID: 34178660
PS - Suggest you post into the code window instead of creating a Word doc.  Many people (me included) don't like to open Word docs off the internet, and it might limit the number of responses you get.

- Gary
0
 

Author Closing Comment

by:lynn_harris
ID: 34178676
Ahhh... makes since.  It is a numeric with zero decimal.  

Thank you. And thanks for the advice on now to post.

Enjoy the weekend.

0

Featured Post

Video: Liquid Web Managed WordPress Comparisons

If you run run a WordPress, you understand the potential headaches you may face when updating your plugins and themes. Do you choose to update on the fly and risk taking down your site; or do you set up a staging, keep it in sync with your live site and use that to test updates?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I don't know if many of you have made the great mistake of using the Cisco Thin Client model with the management software VXC. If you have then you are probably more then familiar with the incredibly clunky interface, the numerous work arounds, and …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question