View previous topic :: View next topic
|
Author |
Message |
mithun123
New User
Joined: 13 Apr 2006 Posts: 11
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
mithun123
New User
Joined: 13 Apr 2006 Posts: 11
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
|