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

How to set date as a qualifier of a DS


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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
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
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
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
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: 411
Location: Colarado, US

PostPosted: Wed Feb 08, 2006 2:49 pm
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: 1104
Location: The Netherlands at Hole 19

PostPosted: Wed Feb 08, 2006 4:43 pm
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: 1104
Location: The Netherlands at Hole 19

PostPosted: Wed Feb 08, 2006 4:45 pm
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
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
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: 1104
Location: The Netherlands at Hole 19

PostPosted: Thu Feb 09, 2006 2:50 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Need help to append a date&tsp at... DFSORT/ICETOOL 9
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
Search our Forums:

Back to Top