Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Using CHAIN to access a subfile record in FREE format ?

Posted on 2010-11-19
3
Medium Priority
?
2,011 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Occasionally Windows/Microsoft Updates will fail to update. We have found a code that will delete all temporary files and re-register all dll's related to Windows/Microsoft Updates! This works 99% of the time to get the updates working again! The…
#Citrix #POC #XenDesktop #vCenter #VMware #ESX
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.

610 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