Thanks for your Reply and I was first trying to create the Dataset and then thought working on the Date Format.
The job runs successfully. Only JS10 Step of TCWM55 runs and JS20 of TCWM56 doesn't run and in SYSOUT.Do we need 2 Job Statements(TCWM55 and TCWM56)?
I tried with 1 Job Statement and 2 Job Steps(JS10 and JS20), the job executes only JS10 Step. But in SYSOUT, I could see the following Output but doesn't create Dataset.
Code:
------------------------------- IOF Job Summary ----------------------------
COMMAND ===> 4 SCROLL ===> SCR
--JOBNAME--JOBID----STATUS---RAN/RECEIVED------DAY-------DEST---------------
TCWM55 J008409 OUTPUT 15:20 9/23/2014 TODAY FRDMACM2
--RC--PGM--------STEP-----PRSTEP---PROC-----COMMENTS------------------------
0 EZACFSM1 JS10
--------DDNAME---STEP-----PRSTEP---STAT-ACT-C-GRP-D-SIZE-U-DEST-------------
_ 1 LOG * HELD T 1 H 22 L FRDMACM2
_ 2 JCL * HELD T 1 H 9 L FRDMACM2
_ 3 MESSAGES * HELD T 1 H 50 L FRDMACM2
4 SYSOUT JS10 HELD T 2 H 7 L FRDMACM2
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Tue Sep 23, 2014 3:38 pm Post subject:
jayram99 wrote:
Hi Kolusu,
Thanks for your Reply and I was first trying to create the Dataset and then thought working on the Date Format.
The job runs successfully. Only JS10 Step of TCWM55 runs and JS20 of TCWM56 doesn't run and in SYSOUT.Do we need 2 Job Statements(TCWM55 and TCWM56)?
I tried with 1 Job Statement and 2 Job Steps(JS10 and JS20), the job executes only JS10 Step. But in SYSOUT, I could see the following Output but doesn't create Dataset.
Jayaram99,
You need a basic understanding of the job you are submitting. You are submitting another job via intrdr using a job. Is WIDJXC your T-id or somebody else's id?
change the string "Your t-id" to your mainframe T-ID in the jcl below(5 places and run the job AS IS and then you will have 2 job Outputs
Need One more Help. Please advice me how to read Dataset with previous month.
ABC.XYZ.NAM00840.SASFILE.M&LYR4.&LMON - Could Read Curent Year Month(201409).
We recieved new requirement.
Ex :
1)If we are running job in September,The Dataset to be read is Previous Month(201408).
ABC.XYZ.NAM00840.SASFILE.M201408
2) If we are running job in Jan 2015,The Dataset to be referred is Previous Year and Previous Month(201412).
ABC.XYZ.NAM00840.SASFILE.M201412
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Mon Sep 29, 2014 4:24 pm Post subject:
Jayaram99,
Use the following JCL. I assumed the prevmon starts at position 45 in the JCL. You need to change it to the position based on the naming convention. Use DATE2-1 which will give you previous month.
Once you have verified that everything is correctly substituted, change the //SORTOUT DD SYSOUT=* to //SORTOUT DD SYSOUT=(*,INTRDR),RECFM=FB and submit the job.
We will receive Trigger File (ENV.TRIGGER.FILE) and This Trigger file(ENV.TRIGGER.FILE) has a value which will a file name like(ABC.PROD.INPUT.FILE.M201410).
This file(ABC.PROD.INPUT.FILE.M201410) changes every 1/2 months. How to read Dataset(ABC.PROD.INPUT.FILE.M201410) as an input
in our JCL?
The JCL will call COBOL/SAS Program to proces the Dataset(ABC.PROD.INPUT.FILE.M201410)
Secondly you have a file name in a file and you need to read that as input to your cobol program. what is that you are stuck with? It is quite simple task of reading the file and generating the JCL and submitting it. What did you try so far? _________________ Kolusu
www.linkedin.com/in/kolusu
All times are GMT - 5 Hours Goto page Previous1, 2, 3, 4Next
Page 3 of 4
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