Solved

Using CHAIN to access a subfile record in FREE format ?

Posted on 2010-11-19
3
1,677 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
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 34

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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 …
#Citrix #POC #XenDesktop #vCenter #VMware #ESX
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…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

948 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

21 Experts available now in Live!

Get 1:1 Help Now