Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
SYSPRINT dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
ravikumar15

New User


Joined: 27 Mar 2006
Posts: 64

PostPosted: Mon Dec 21, 2009 3:35 pm    Post subject: SYSPRINT dataset
Reply with quote

HI,

I am trying to capture the SYSPRINT messages to a dataset. In the DCB parameters, I have LRECL as 80 and record format as FB. But after the step has ran, the dataset is getting created with LRECL as 125 and record format as VBA. Can any one tell me why this is happening. Is there any way to create SYSPRINT dataset with record length 80.

Thanks,
Ravi
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6970
Location: porcelain throne

PostPosted: Mon Dec 21, 2009 3:44 pm    Post subject:
Reply with quote

'depending on' the utility that you are using, most often the SYSPRINT will be what ever the utility dynamically allocates - thus overriding your DCB parms.

If you would bother to share with us the utility that you are using, someone may have a solution.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2445
Location: Netherlands, Amstelveen

PostPosted: Mon Dec 21, 2009 3:44 pm    Post subject:
Reply with quote

The program in question has its dcb patameters set, so you cant overwite
them in jcl.
Back to top
View user's profile Send private message
ravikumar15

New User


Joined: 27 Mar 2006
Posts: 64

PostPosted: Mon Dec 21, 2009 4:03 pm    Post subject: Reply to: SYSPRINT dataset
Reply with quote

I want to check whether a dataset (abc.xyz.bkddmm, where ddmm is date and month and it will be changing) exist or not. If it exist I want to extract the name of the dataset. So I am using IDCAMS utility to get the catalog information and put in SYSPRINT dataset. Then I am extracting the name of the dataset in another step. But the IDCAMS step is allocating the dataset with LRECL=125 and RECFM=VBA. But I want the LRECL as 80 and format as FB.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8617
Location: Back in jolly old England

PostPosted: Mon Dec 21, 2009 4:08 pm    Post subject:
Reply with quote

As stated above, IDCAMS will ignore what you want.
You will need to reformat the IDCAMS output in a subsequent step.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2445
Location: Netherlands, Amstelveen

PostPosted: Mon Dec 21, 2009 4:35 pm    Post subject: Re: Reply to: SYSPRINT dataset
Reply with quote

ravikumar15 wrote:
I want to check whether a dataset (abc.xyz.bkddmm, where ddmm is date and month and it will be changing) exist or not. If it exist I want to extract the name of the dataset. So I am using IDCAMS utility to get the catalog information and put in SYSPRINT dataset. Then I am extracting the name of the dataset in another step. But the IDCAMS step is allocating the dataset with LRECL=125 and RECFM=VBA. But I want the LRECL as 80 and format as FB.


Is it too difficult to process LRECL=125 and RECFM=VBA input?
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Dec 21, 2009 6:14 pm    Post subject:
Reply with quote

In an IDCAMS JCL (job?) SYSPRINT DD is IDCAMS Messages file. The SYSPRINT DD statement is required and is RECFM=VBA. The BLKSIZE value can be any value up to 32670 that is a multiple of 125; the default block size is 629 - in short you are trying to interfere in the legacy of IDCAMS which It won't allow. If there is other program/utlity expects "this file" as input of LRECL=80/FB, suggest you reformat the IDCAMS output in a subsequent step as expat has suggested or try on what Peter has suggested.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2445
Location: Netherlands, Amstelveen

PostPosted: Mon Dec 21, 2009 6:24 pm    Post subject:
Reply with quote

Even if you CALL IDCAMS in other languages (COBOL, EZT, REXX etc)
and you supply a parm list with alternate DDnames for SYSPRINT, SYSIN.
Cause the caller has already these DDnames for itself. There is no possibility to change DCB parameters in JCL.
TS could ask IBM to change all its utilities concerning SYSPRINT DCB parameters, so those IBM people could have one of those laughs they
are not having too much.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Tue Dec 22, 2009 1:23 am    Post subject:
Reply with quote

IBM has anticipated your request.

Read the AMS manual and look at the OUTFILE(ddname) to direct the listing to a file other than SYSPRINT.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Tue Dec 22, 2009 8:11 am    Post subject:
Reply with quote

Hi Bill,

I don't think the OUTFILE will change the RECFM to FB.


Gerry
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2445
Location: Netherlands, Amstelveen

PostPosted: Tue Dec 22, 2009 11:29 am    Post subject:
Reply with quote

Bill Dennis wrote:
IBM has anticipated your request.

Read the AMS manual and look at the OUTFILE(ddname) to direct the listing to a file other than SYSPRINT.


Using OUTFILE for alternate SYSPRINT output (e.g. LISTCAT, DIAGNOSE)
will result in a dataset with RECFM=VBA and LRECL=125.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Wed Dec 23, 2009 10:56 pm    Post subject:
Reply with quote

I see that I read too quickly and thought the DCBs could be user-controlled.

Thanks for the correction.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us