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

A Rexx who changes date into a JCL? Possible?


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Robledo

New User


Joined: 25 Mar 2021
Posts: 4
Location: España

PostPosted: Thu Mar 25, 2021 9:38 pm
Reply with quote

Hi! This is my first post in Forum!
I have a question:
I have a JCL:

Code:
//*** JOB (BTCHWLM0,00693,00000001,C000),                             
//         USER=CECRACF,                                                   
//         CLASS=D,MSGCLASS=L,REGION=0M,MSGLEVEL=(1,1),COND=(3,LT),       
//         SCHENV=***
//         SET FECHA=&CMMYY                                                   
/*JOBPARM      S=ANY                                                       
//***----------------------------------------------------------------***   
//***----------------------------------------------------------------***   
//OUT1     OUTPUT USERDATA=('TO:***@***.ES',                     
//         'TO:***@***.COM','TO:***@***.COM',     
//         'TO:***@***.COM','TO:***@***.COM',     
//         'CC:***@***.COM','CC:***@***.COM',                 
//         'SUBJECT: Cosas interesantes [b][u]Marzo 2021[/u][/b]' ),                 
//         MAILFROM='***@***.COM'                                 
//***----------------------------------------------------------------*** 


Mission: I want changes "Marzo 2021" to system date but month=-1
Example: Today is: 03/21 (MMYY) Date to JCL: 02/21
...and changes MM to January, february...etc
Question: Is possible into JCL? icon_question.gif

I know only "&CMMYY" , I´m not developper hehehe. sterb050.gif
I know with REXX but I need an other data set... I want into JCL.

Thanks you very much and sorry for my english, I´m Spanish hehe icon_keel.gif
Back to top
View user's profile Send private message
sergeyken
Warnings : 2

Senior Member


Joined: 29 Apr 2008
Posts: 1038

PostPosted: Thu Mar 25, 2021 10:10 pm
Reply with quote

Definitely, in JCL nothing like this is possible. JCL is like another planet, from this point of view.

You cannot brew a cup of coffee using, for instance, a dishwasher. Can you?

You can generate a different JCL by using any other tool you know. JCL is just a text; can be handled by 100500 existing text-processing tools.

P.S.
If “you are not developer, hehe” then: who are you??? And why do you need to visit this forum?
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1590
Location: Andromeda Galaxy

PostPosted: Thu Mar 25, 2021 10:24 pm
Reply with quote

Hi Robledo

Welcome aboard!!!

What scheduler do you use?
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 2639
Location: NYC,USA

PostPosted: Fri Mar 26, 2021 12:20 am
Reply with quote

Robledo, You can try EZACFSM1 to use system symbolic paramters or use DFSORT or other modules to create customized (OUT1 statements and the complete JCL ) and using INTRDR submit that JCL Or use REXX way as you know.

Since you are not a Developer other option might be Scheduling as asked already or talk to system people to see if they can help to define any system symbolic the way you want.
Back to top
View user's profile Send private message
Robledo

New User


Joined: 25 Mar 2021
Posts: 4
Location: España

PostPosted: Fri Mar 26, 2021 1:56 pm
Reply with quote

sergeyken wrote:
Definitely, in JCL nothing like this is possible. JCL is like another planet, from this point of view.

You cannot brew a cup of coffee using, for instance, a dishwasher. Can you?

You can generate a different JCL by using any other tool you know. JCL is just a text; can be handled by 100500 existing text-processing tools.

P.S.
If “you are not developer, hehe” then: who are you??? And why do you need to visit this forum?


Thanks you very much for your answer! "a cup of coffee using a dishwasher", I understood xDD

I´m a Mainframe Operator, in spain that position does not do many things... but i like study JCL, Rexx and Cobol icon_smile.gif
Back to top
View user's profile Send private message
Robledo

New User


Joined: 25 Mar 2021
Posts: 4
Location: España

PostPosted: Fri Mar 26, 2021 2:12 pm
Reply with quote

Pandora-Box wrote:
Hi Robledo

Welcome aboard!!!

What scheduler do you use?


Hi Pandora!!

Thanks you very much! Scheduler... MVS/TN3270? Is this? hehehe
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 450
Location: Denmark

PostPosted: Fri Mar 26, 2021 2:49 pm
Reply with quote

Re 'What scheduler do you use?' I am pretty sure that Pandora-box means which job scheduler your company uses,i.e. IBM Tivoli Workload Scheduler (&CMMYY indicates that this is the case). If the job is a production job then it supposedly is submitted through a job scheduler and you should contact your scheduler team. If it is your own then you have a couple of options:
- Generate JCL using REXX, you can write the job to the internal reader.
- Generate JCL using ISPF Skeleton Services, write the job to internal reader.
- ISPF edit macro.
But the bottom line is that you must generate the JCL with the changed values.
Back to top
View user's profile Send private message
Robledo

New User


Joined: 25 Mar 2021
Posts: 4
Location: España

PostPosted: Fri Mar 26, 2021 7:40 pm
Reply with quote

Rohit Umarjikar wrote:
Robledo, You can try EZACFSM1 to use system symbolic paramters or use DFSORT or other modules to create customized (OUT1 statements and the complete JCL ) and using INTRDR submit that JCL Or use REXX way as you know.

Since you are not a Developer other option might be Scheduling as asked already or talk to system people to see if they can help to define any system symbolic the way you want.


Hi Rohit! Thanks you very much for your answer! icon_smile.gif
I can´t talk with system people by the moment because an operator can´t made this, hehehe
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1590
Location: Andromeda Galaxy

PostPosted: Fri Mar 26, 2021 11:37 pm
Reply with quote

Topic locked
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 2639
Location: NYC,USA

PostPosted: Sat Mar 27, 2021 1:26 am
Reply with quote

Robledo wrote:
Rohit Umarjikar wrote:
Robledo, You can try EZACFSM1 to use system symbolic paramters or use DFSORT or other modules to create customized (OUT1 statements and the complete JCL ) and using INTRDR submit that JCL Or use REXX way as you know.

Since you are not a Developer other option might be Scheduling as asked already or talk to system people to see if they can help to define any system symbolic the way you want.


Hi Rohit! Thanks you very much for your answer! icon_smile.gif
I can´t talk with system people by the moment because an operator can´t made this, hehehe

Sorry we can not help you any further here since you are not a developer nor knows about scheduling. Good Luck 👍
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts rexx pgm to create multiple ps file IBM Tools 7
No new posts Mainframe batch Job or REXX to get VT... CLIST & REXX 7
No new posts calling OMEGAMON from REXX CLIST & REXX 3
No new posts REXX allocated datasets in JCL CLIST & REXX 9
No new posts getting RC=3650 when invoking REXX wi... CLIST & REXX 7
Search our Forums:

Back to Top