the "Dynamic SMF Log Stream Browsing" section in the Administering Guide has a section that shows the JCL and input control statements needed to set up the log stream: https://techdocs.broadcom.com/us/en/ca-mainframe-software/performance-and-storage/ca-sysview-performance-management/16-0/administering/data-collection/dynamic-smf-log-stream-browsing.html
Also recommend reviewing both the help topic regarding viewing z/OS Connect records in SYSVIEW: https://techdocs.broadcom.com/us/en/ca-mainframe-software/performance-and-storage/ca-sysview-performance-management/16-0/scenarios-how-to-articles-videos-and-online-help-topics/online-help-topics/zos-connect-smf-records.html
The easiest and recommended way to manage a log stream for z/OS Connect records is by using our recently published Dynamic SMF Log Stream Browsing feature (SO16108). Dynamic SMF Log Stream Browsing (DSLB) provides the administrator with control over what record types get logged to different SYSVIEW dynamic SMF log streams. For example, a new log stream can be defined and then with DSLB, use the DSMFLOGS command to choose to only log SMF type 123 (z/OS Connect) to that log stream. This will help increase processing times when viewing the 123 records in SYSVIEW.
Even with DSLB, the administrator has responsibility for defining the log stream that will hold the z/OS Connect records. There is not any JCL specific to defining a log stream for z/OS Connect records. Also currently there is not a recommendation on the size of the log stream, as it is specific to each site's environment. However, JCL is provided for defining other log streams in SYSVIEW and those jobs can be reused to create a new log stream. See https://techdocs.broadcom.com/us/en/ca-mainframe-software/performance-and-storage/ca-sysview-performance-management/16-0/installing/deploy-configure-and-start-your-product/configure-without-ca-csm-or-z-osmf-provisioning/define-log-streams-inst0040-inst0046.html.
A generic sample JCL for defining log streams can be found in the latest documentation regarding the DSLB feature: https://techdocs.broadcom.com/us/en/ca-mainframe-software/performance-and-storage/ca-sysview-performance-management/16-0/administering/data-collection/dynamic-smf-log-stream-browsing/create-and-modify-dynamic-smf-log-stream-browsing-definitions.html