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

Creating Easytrieve load module (so that file declarations c


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jimmybhandari

New User


Joined: 04 Jun 2009
Posts: 13
Location: bangalore

PostPosted: Wed Aug 12, 2009 6:14 pm
Reply with quote

Hi
Is it possible to create a load module for an Easytrieve program such that we can pass the file declaration parameters later while executing the same. I want to use this concept in a utility program which i am creating for my client. It would not be possible for me to explain the full code here but, i will try to explain the problem for which i am seeking solution by providing a very simple example.

Lets say we have an easytrieve program to copy contents of one file to another. For this program, we will provide the two input dataset names and declare the files as below

File Infile
In-rec 1 10
File outfile
Out-rec 1 10

We can easily create a load module for the above program which will work fine as long as the input file has a record length of 10. But, if the input file is of varying record length, we will have to pass the record length to the load module while executing the same.

Please see if you can help me regarding this.

Thanks
Jimmy
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Aug 12, 2009 9:59 pm
Reply with quote

Hello,

As was answered quite recently, no you can't do this.

You could generate new source on the fly and execute this new code.
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 -> CA Products

 


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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Load new table with Old unload - DB2 DB2 6
Search our Forums:

Back to Top