Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Natural Work file error

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
View previous topic :: :: View next topic  
Author Message
gadiyarampavan

New User


Joined: 22 Feb 2005
Posts: 18
Location: Hyderabad

PostPosted: Wed Apr 16, 2008 4:07 pm    Post subject: Natural Work file error
Reply with quote

Hi,

Currently, I got a chance to work on Natural Adabas. Currently, I am working on Windows based Natural Adabas.

I am reading the records from a work file and while compiling the program, I am facing the problem with the below mentioned error.

But, I don't know, how to declare a work file in Natural.

Can anybody help me to resolve this error.

NAT0623 Variable/field/view must be defined in DEFINE DATA.
-------------------------------------------------------------------------------
TEXT:
Variable/field/view must be defined in DEFINE DATA.
EXPL:
If a DEFINE DATA statement is present, all variables/fields to be
used must be defined in the DEFINE DATA statement in an LDA, GDA
or PDA, which are referenced with the keyword USING in the
DEFINE DATA statement.
If this error occurs for a DDM and a DEFINE DATA statement is
present, a view of the DDM (and of any database field referenced
in the program) must be defined in the DEFINE DATA statement.
ACTN:
Check program and correct error.


Thanks & Regards,
Pavan Kumar
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed Apr 16, 2008 4:13 pm    Post subject:
Reply with quote

You do not declare a work file in NATURAL. All you need is to declare is a variable (as the message says) to store the record you read from the work file.

O.
Back to top
View user's profile Send private message
gadiyarampavan

New User


Joined: 22 Feb 2005
Posts: 18
Location: Hyderabad

PostPosted: Thu Apr 17, 2008 3:35 pm    Post subject: Reply to: Natural Work file error
Reply with quote

Hi,

I would like to know as where we need to declare a work file and how we can process the records of a work file in WINDOWS based Natural.

It would be helpful for me if anybody focus on this problem.

Thanks & Regards,
Pavan Kumar
Back to top
View user's profile Send private message
monasu1998

Active User


Joined: 23 Dec 2005
Posts: 176
Location: India

PostPosted: Tue Apr 29, 2008 7:02 pm    Post subject: Re: Reply to: Natural Work file error
Reply with quote

Hi,

You can define the file in the Natural program as

01 3 #FILE1
02 #FIELD1 (FORMAT/LENGTH)
02 #FIELD2 (FORMAT/LENGTH)
02 #FIELD3 (FORMAT/LENGTH)
02 #FIELD4 (FORMAT/LENGTH)

OR

01 #FILE1 (FORMAT/LENGTH)

LENGTH is your record length

Than read the work file.

See if it is helpful to you.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us