View previous topic :: View next topic
|
Author |
Message |
ravikumar15
New User
Joined: 27 Mar 2006 Posts: 68
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
'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 |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
The program in question has its dcb patameters set, so you cant overwite
them in jcl. |
|
Back to top |
|
|
ravikumar15
New User
Joined: 27 Mar 2006 Posts: 68
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
As stated above, IDCAMS will ignore what you want.
You will need to reformat the IDCAMS output in a subsequent step. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
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 |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
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 |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi Bill,
I don't think the OUTFILE will change the RECFM to FB.
Gerry |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
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 |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
I see that I read too quickly and thought the DCBs could be user-controlled.
Thanks for the correction. |
|
Back to top |
|
|
|