Solved

Using CHAIN to access a subfile record in FREE format ?

Posted on 2010-11-19
3
1,648 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
  • 2
3 Comments
 
LVL 34

Accepted Solution

by:
Gary Patterson earned 50 total points
Comment Utility
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 34

Expert Comment

by:Gary Patterson
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

In a recent article here at Experts Exchange (http://www.experts-exchange.com/articles/18880/PaperPort-14-in-Windows-10-A-First-Look.html), I discussed my nine-month sandbox testing of the Windows 10 Technical Preview, specifically with respect to r…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now