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

SYSPRINT dataset


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ravikumar15

New User


Joined: 27 Mar 2006
Posts: 68

PostPosted: Mon Dec 21, 2009 3:35 pm
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: 6966
Location: porcelain throne

PostPosted: Mon Dec 21, 2009 3:44 pm
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: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon Dec 21, 2009 3:44 pm
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: 68

PostPosted: Mon Dec 21, 2009 4:03 pm
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: 8797
Location: Welsh Wales

PostPosted: Mon Dec 21, 2009 4:08 pm
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: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon Dec 21, 2009 4:35 pm
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

Superior Member


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

PostPosted: Mon Dec 21, 2009 6:14 pm
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: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon Dec 21, 2009 6:24 pm
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
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: 1702
Location: Australia

PostPosted: Tue Dec 22, 2009 8:11 am
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: 2481
Location: Netherlands, Amstelveen

PostPosted: Tue Dec 22, 2009 11:29 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top