Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Including Physical File Name In Natural Program

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

New User


Joined: 13 Apr 2006
Posts: 11

PostPosted: Tue Apr 24, 2007 10:26 am    Post subject: Including Physical File Name In Natural Program
Reply with quote

Hi Exparts,
I am new to the Natural Environment . I have experience with COBOL. Can anyone please give me an example of how to use the Physical file name in the program.

Suppose in the cobol environment we define a file like this
SELECT LFILENAM ASSIGN TO INFILE

Now in JCL we would use the statement
//INFILE DD DSN=CTLG1.FILE1,
// DISP=OLD

Now in Natural we use the READ statement to read the file, but how to include the physical file name with the Help of JCL/Any other (If any)?

Please specify the execution of a natural program ( An sample JCL) ignoring all installation dependent parameters.

Thanks in advance for your co-operation.

Thanks and Regards,
Mithun
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Tue Apr 24, 2007 10:50 am    Post subject: Re: Including Physical File Name In Natural Program
Reply with quote

Quote:
Please specify the execution of a natural program ( An sample JCL) ignoring all installation dependent parameters.


It would be very unethical of us to give guidance on breaking Your installation rules ...
:-)
Back to top
View user's profile Send private message
mithun123

New User


Joined: 13 Apr 2006
Posts: 11

PostPosted: Tue Apr 24, 2007 11:52 am    Post subject: Re: Including Physical File Name In Natural Program
Reply with quote

Hi enrico-sorichetti,
I want to mean that , in the JCL there can be some parameter which is installation dependent, Like for the compilation of Cobol program different installation use different type of parameter. Please give me the JCL to include the Physical file name with any of the parameter u are comfortable with. I will check with our system engineer for these system dependent parameter. Please give me an sample JCL which include some physical sequential and physical VSAM file.

Thanks and Regards,
Mithun Chatterjee
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed Apr 25, 2007 2:54 pm    Post subject:
Reply with quote

Here is the deal: NATURAL uses Work Files for datasets processings. Each work file has a number (ranging usually from 1 to 32).

In your job, you allocate the DDNAMEs using the CMWKFnn way, where nn is the file number. For example: CMWKF01, CMWKF26 etc.

In your NATURAL program, you use this file number in your WORK FILE statements, for example: READ WORK FILE 1, WRITE WORK FILE 26 etc.

All this information (and much more, even examples) can be found in Software AG's fine manuals.

O.
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us