Page 1 of 1

Creation of file with a name taken from a sequential file

Posted: Tue Feb 17, 2004 6:06 am
by Sreenivasulu
Hi All,

I want to create a file whose name would be dynamic. The file name has to be read from :roll: a sequential file.

Regards

:)

Posted: Tue Feb 17, 2004 6:14 am
by kcbland
The filename is a job parameter, and the job parameter value is fed by the job control process. The job control process takes care of determining the value by whatever means necessary. Your choices for job control are Sequencers, BATCH, or custom control using the documented APIs.

Posted: Tue Feb 17, 2004 3:04 pm
by ray.wurlod
To paraphrase what Ken posted, your job control routine reads the sequential file, constructs the file name based on what it has read, and passes this to the job as a parameter value using DSSetParam before requesting execution of the job.
Within the job, the parameter reference is used to provide the file name.

Posted: Wed Feb 18, 2004 4:06 am
by roy
Hi,
you could also use a job to read the file and get the file anme and then set user status with the file name and pass that as your paramter to the job.

just another way to get what the wise folks said before me :)