Exceeding the 132 byte default for DISPLAY

Software AG's platform-independent programming language with full support for open-source and Internet applications
Joe Horgan
Posts: 1
Joined: Wed May 10, 2017 10:25 pm
Skillset: Natural/Adabas/CICS1
Referer: State of Vermont

Exceeding the 132 byte default for DISPLAY

Postby Joe Horgan » Wed May 10, 2017 10:55 pm

Hello,

I am updating a job which executes a Natural program. The Natural program uses a DISPLAY statement to create a columned report, and I would like to add an extra two columns, but the output to the CMPRINT file will not display past the 132nd byte. I've increased the LRECL in the JCL and am using the FORMAT LS=190 in the Natural (needed to stow). Is there a PARM that can be added to the EXEC statement or is this a nucleus specific parameter that needs to be updated for the Natural program to exceed the default? Any help is appreciated!

Thanks,

Joe

Robert Sample
Global moderator
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
Referer: other forum
Location: Dubuque, Iowa, USA

Re: Exceeding the 132 byte default for DISPLAY

Postby Robert Sample » Thu May 11, 2017 9:54 pm

Have you posted a query to the Software AG support site? From what I can tell, FORMAT (1) LS=190 -- or something like that syntax -- should set the line size to 190 bytes. If it is not working for you, the SAG support people should be able to help you find out why.

User avatar
RGZbrog
Posts: 101
Joined: Mon Nov 23, 2009 1:34 pm
Skillset: Natural, Adabas, Predict, Natural Security, Construct, EntireX, SPoD, NaturalONE
Referer: SAG Developer Forum
Location: California, USA
Contact:

Re: Exceeding the 132 byte default for DISPLAY

Postby RGZbrog » Mon May 15, 2017 9:57 am

Natural can handle a line size of 250 characters. I have written SYSOUT datasets of 160 characters, but I don't recall needing to go beyond that, so I can't say whether your issue is a mainframe limitation or your/user error. ;) (I haven't run a mainframe Natural batch job for years.)

An alternative to such a long line is to produce a multi-line report. See if the VERT keyword of the DISPLAY statement will help.

User avatar
RGZbrog
Posts: 101
Joined: Mon Nov 23, 2009 1:34 pm
Skillset: Natural, Adabas, Predict, Natural Security, Construct, EntireX, SPoD, NaturalONE
Referer: SAG Developer Forum
Location: California, USA
Contact:

Re: Exceeding the 132 byte default for DISPLAY

Postby RGZbrog » Wed May 17, 2017 12:57 am

OK. I tested this on a mainframe.

SYSOUT is restricting the line size. Change your JCL to send the report to a dataset, instead.

Code: Select all

//CMPRT01 DD  DSN=MY.REPORT,
//            RECFM=FBA,LRECL=191,BLKSIZE=0,
//            DISP=(NEW,CATLG),etc...


  • Similar Topics
    Replies
    Views
    Last post