Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to set date as a qualifier of a DS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
hyuzen

New User


Joined: 10 Jul 2005
Posts: 58

PostPosted: Thu Jan 12, 2006 1:19 am    Post subject: How to set date as a qualifier of a DS
Reply with quote

Hi all,

Firstly I wish you a VERY HAPPY NEW YEAR to all you (So sorry for my late wish).

How can I set the date as a qualifier of a dataset shown as :

PROD.CYCLE.MMMYYDD

PROD.CYCLE.JAN0602
PROD.CYCLE.DEC0530

and is it also possible to give the date-qualifier to a dataset will be created after a job is submitted ?

Thanks in advance,
Hyuzen
Back to top
View user's profile Send private message

Ramya A

Active User


Joined: 26 Jul 2004
Posts: 104

PostPosted: Thu Jan 12, 2006 3:36 am    Post subject:
Reply with quote

If you are using any scheduler's they should be having those options - something like Grandlist in OPC scheduler.
Back to top
View user's profile Send private message
MichaelKBS

New User


Joined: 10 Jan 2006
Posts: 24
Location: Germany

PostPosted: Thu Jan 12, 2006 2:19 pm    Post subject: Re: How to set date as a qualifier of a DS
Reply with quote

Quote:

How can I set the date as a qualifier of a dataset


Hi and happy new year to you, too.

Using the internal reader,
you can generate the date from system
Code:

//STEP01   EXEC PGM=EZACFSM1                                       
//SYSOUT   DD SYSOUT=(*,INTRDR)                                     
//SYSIN    DD DATA,DLM='%%'                                         
//XXXXXB  JOB 'xx  ',MSGCLASS=T,CLASS=R,NOTIFY=XXXXX,REGION=32M, 
//       MSGLEVEL=(1,1)                                             
//STEPK1   EXEC PGM=IEBGENER                                       
//SYSPRINT DD SYSOUT=*                                             
//SYSOUT   DD *                                                     
//SYSUT1   DD  DISP=SHR,DSN=INPUT.FB80                             
//SYSUT2   DD  DSN=OUTPUT.D&LYYMMDD,                               
//             DISP=(NEW,CATLG,DELETE),                             
//             SPACE=(TRK,(1,1),RLSE),                             
//             UNIT=SYSDA,                                         
//             DSORG=PS,                                           
//             LRECL=80,                                           
//             RECFM=FB                                             
//SYSIN   DD  DUMMY                                                 
%%                                                                 



Greets,
Michael
Back to top
View user's profile Send private message
bigheadboy

New User


Joined: 08 Feb 2006
Posts: 4

PostPosted: Wed Feb 08, 2006 1:28 pm    Post subject:
Reply with quote

not work, can you explain more? icon_smile.gif
Back to top
View user's profile Send private message
bigheadboy

New User


Joined: 08 Feb 2006
Posts: 4

PostPosted: Wed Feb 08, 2006 2:17 pm    Post subject:
Reply with quote

seems that the job between the delimiter '%%' is not run.
Back to top
View user's profile Send private message
iknow

Active User


Joined: 22 Aug 2005
Posts: 413
Location: Colarado, US

PostPosted: Wed Feb 08, 2006 2:49 pm    Post subject: Re: How to set date as a qualifier of a DS
Reply with quote

Hi Ramya Arun,

Ramya wrote:

Quote:
If you are using any scheduler's they should be having those options - something like Grandlist in OPC scheduler.



Could you please tell me like under which option I can find information wrt Grandlist in OPC.
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1105
Location: The Netherlands at Hole 19

PostPosted: Wed Feb 08, 2006 4:43 pm    Post subject:
Reply with quote

Your delimiter = '%%' so this should be at the end of the jcl to put on the internal reader. Or......type DLM=%%
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1105
Location: The Netherlands at Hole 19

PostPosted: Wed Feb 08, 2006 4:45 pm    Post subject:
Reply with quote

From the JCL reference:
12.20.6 Example of the DLM Parameter
//DD1 DD *,DLM=AA
.
.
data
.
AA

I often advice people to read the manuals icon_wink.gif Often is now.
Back to top
View user's profile Send private message
MichaelKBS

New User


Joined: 10 Jan 2006
Posts: 24
Location: Germany

PostPosted: Wed Feb 08, 2006 8:48 pm    Post subject:
Reply with quote

bigheadboy wrote:
seems that the job between the delimiter '%%' is not run.


Hi bighead,

what error message do you get?
Back to top
View user's profile Send private message
bigheadboy

New User


Joined: 08 Feb 2006
Posts: 4

PostPosted: Thu Feb 09, 2006 6:04 am    Post subject:
Reply with quote

MichaelKBS wrote:
bigheadboy wrote:
seems that the job between the delimiter '%%' is not run.


Hi bighead,

what error message do you get?


No error message but the job between the delimiter is not run.
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1105
Location: The Netherlands at Hole 19

PostPosted: Thu Feb 09, 2006 2:50 pm    Post subject:
Reply with quote

Bighead, please post the JCL so we can see what you've done. Also send us the results of the job which was supposed to put the jcl on the internal reader.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts Overlay the system date Danielle.Filteau SYNCSORT 4 Fri Mar 03, 2017 1:16 am
No new posts Checking Current date vickey_dw DFSORT/ICETOOL 1 Wed Feb 08, 2017 11:14 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us