Solved

Re-define in RPG style Data Structure

Posted on 2003-10-30
2
835 Views
Last Modified: 2008-02-01
Hi Everyone,

Can someone tell me if we one can redefine a field in RPG style Data Structure.

Thanks
0
Comment
Question by:dhumal
[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
2 Comments
 
LVL 14

Expert Comment

by:daveslater
ID: 9656842
If the DS is internally described then simply change the attributes in the I/D specs

If it is externally described then change the dds definition recompile and recompile the program

You can also simply enter the new spec as followes (usinf the LDA) as an example
 D LDA           E DS                  EXTNAME(LDA) DTAARA(*LDA)    
 DU#LGCD                 873    874                                  
 DU#LGCD                 873    873  0

or

ILDA       E DSLDA                                    
I                                        1   2 PCONO  
I                                      257 271 PNUMFT
I                                      257 2700PNUMFA
0
 
LVL 14

Accepted Solution

by:
daveslater earned 100 total points
ID: 9656844
sorry the example should be

D LDA           E DS                  EXTNAME(LDA) DTAARA(*LDA)    
DU#LGCD                 873    874                                  
DUxLGCD                 873    873  0

or

ILDA       E DSLDA                                    
I                                        1   2 PCONO  
I                                      257 271 PNUMFT
I                                      257 2700PNUMFA
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article was originally published on Monitis Blog, you can check it  here .   Some years back, I worked as the CTO.  During my tenure, I had a head of IT support reporting to me.  He did his job quite well and had a commendable sense of duty…
Adults who share images on social media aren’t the only ones who need to worry about their privacy. Our culture’s tendency to share every move and celebration affects the privacy of our children, too.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

733 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