IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Including Physical File Name In Natural Program


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Apr 24, 2007 10:50 am
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
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: 2358
Location: Israel

PostPosted: Wed Apr 25, 2007 2:54 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Using API Gateway from CICS program CICS 0
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top