Posted: Wed Nov 04, 2009 12:57 pm Post subject: Generate Dynamic JCL using DFSORT
I have two input files
1. One file with one Empl no of 10 digits (Only 1 Record will be present)
2. Second file with following structure (Many record but unique Empl nos):
Empl no: 9(10)
Dataset name: x(40)
In first step I need to match the Empl no from first file in the second file and get following outputs:
1. Dataset name as an DSN name.
2. Dataset name copied into one file.
In second step I would be running one program for which above input files are required.
For Example:
Input to Step1:
File1: 1234567890
File2: 1234567890NUMD.DATA.REFERRAL.G01V00
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Wed Nov 04, 2009 1:26 pm Post subject:
psmadhusudhan,
There are a couple of issues .
1. You do realize that you are generating dynamic JCL and it needs to be submitted as a different job?
2. The dataset name can be a max of 44 characters and you are only having 40 bytes.
3. What happens if you DON't find a match in second file?
4. The tempfile you generated here cannot be used in the dynamic step later. You need to catalog the dataset and then delete it in the dynamic job. _________________ Kolusu
www.linkedin.com/in/kolusu
You do realize that you are generating dynamic JCL and it needs to be submitted as a different job?
Yes I know it is a dynamic JCL.
Quote:
The dataset name can be a max of 44 characters and you are only having 40 bytes.
Even the file name is 40 bytes I dont think there would be any problem.
Quote:
What happens if you DON't find a match in second file?
Match will surey exist.
Is it possible to submit dynamic JCL from another JCL without using cobol program?
Will that help in above scenario or I should write a CObol program. _________________ Thanks
Madhu Sudhan
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Thu Nov 05, 2009 11:43 am Post subject:
psmadhusudhan,
The following DFSORT JCL will generate the dynamic JCL. verify the output from step0200 and if everything looks good then , change the following statement
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum