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
 

 

Ceate dated sequential file using system date under OPC

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
View previous topic :: :: View next topic  
Author Message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Wed Aug 02, 2006 12:02 pm    Post subject: Ceate dated sequential file using system date under OPC
Reply with quote

Hi,

I used the following codes to create dated sequential file using system date -

code 1:
//STEP01 EXEC PGM=IEFBR14
//SYSOUT DD SYSOUT=*
//DDDD DD DSN=TSUA5TD.T&LMON.&LDAY.&LYR2..AAAA,UNIT=SYSDA,
// SPACE=(TRK,(1,1),RLSE),DISP=(,CATLG,DELETE),
// LRECL=80,RECFM=FB

code 2:
//STEP1 EXEC PGM=IEFBR14
//DDDDDD DD DSN=&SYSUID..D&YR2.&MON.&DAY..AAA,
// RECFM=FB,LRECL=80,UNIT=SYSDA,DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(1,1))
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*


When did JSCAN, parameters were passed correctly. Got 'INCORRECT USE OF AMPERSAND IN THE DSN FIELD' error when submitted the job.

Please help in solving the same.

Thanks,
Murali Mohan K
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Wed Aug 02, 2006 4:32 pm    Post subject: Re: Dated seq file
Reply with quote

murmohk1, you should provide details as to what scheduling system you are using when you run this. It would be helpful.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Wed Aug 02, 2006 4:54 pm    Post subject:
Reply with quote

I guess its (scheduling system) OPC
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Wed Aug 02, 2006 6:07 pm    Post subject: Re: Codes to create dated sequential file using system date
Reply with quote

OK, just to be clear (I think this post needs to be moved to the IBM Tools Forum):

You have JCL code (not a PROC) containing the code you indicated. You ran them through JobScan (Diversified Software) with the JSCAN macro, and JSCAN did not report any errors, such as "no value specified for symbolic parameter ..." or something similar.

Then, you ran the job(s), and your scheduling system (OPC/TWS) did NOT provide the proper symbolic substitution at runtime.

Is this synopsis accurate?
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Thu Aug 03, 2006 7:29 am    Post subject: Re: Codes to create dated sequential file using system date
Reply with quote

Yes....
Back to top
View user's profile Send private message
jayesh_g

New User


Joined: 03 Mar 2004
Posts: 24

PostPosted: Fri Aug 04, 2006 10:34 pm    Post subject: Re: Codes to create dated sequential file using system date
Reply with quote

Post the complete JCL.

Are you changing anything in the JCL after doing a JSCAN and before submitting the job?

-Jayesh.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Fri Aug 04, 2006 11:42 pm    Post subject: Re: Codes to create dated sequential file using system date
Reply with quote

jayesh_g, what I was attempting to do in my series of questions is to "nudge" the O/P into defining what the actual percieved problem is.

Is it a problem with JSCAN in that it didn't catch the undefined variables, or that it doesn't correlate them to the variables present in the scheduler? Or, is it a problem with the job scheduler in that it didn't know how to resolve those given variables?

Either way, realistically, the product's support team should probably be contacted.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Mon Aug 07, 2006 9:26 am    Post subject: Re: Codes to create dated sequential file using system date
Reply with quote

Hi,

I have not changed anything after JSCAN before submitting the job.

Just add the job card to the provided step(s) and run the JCL. No value SET is required for any of the variables. I tried even with other shop (freind working in different company). Even he had the same problem (No error with JSCAN and 'INCORRECT USE OF AMPERSAND IN THE DSN FIELD' when submitted).


Thanks,
Murali Mohan K
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 -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 11 Tue May 16, 2017 2:20 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am


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