Skip to main content

Component names in zFS/HFS/USS file systems can be up to 255 characters and path names can be up to 1024 characters in length.

Using ‘traditional’ or ‘standard’ techniques when attempting to write custom ISPF skeletons to handle such components is liable to result in errors. For example, the following type of messages being issued by the external file tailoring procedure (i.e. CMNADSP) when building the component:

Line to be written greater than data set LRECL (80), CMNCUST record-405 CN(INTERNAL)
***

And this in the associated SYSPRINT output file:

CMNVFTLR file tailoring - 8.3

Function : Component file tailor and submit for stage.
Subsystem: T
Userid : USER01
Package : DEMO004963
Date/Time: 2023/08/22 03:35:52

Libtype : JVS
Component: SiJavaPgmButThisOneIsVeryMuchLongerThanUsualAndWillGoBeyond80BytesWhenFileTailored.java
Error occurred during file tailoring
Line to be written greater than data set LRECL (80), CMNCUST record-405

When attempting to incorporate zFS path and component names into bespoke routines customers should review the way in which the distributed product handles such components.

For example, the following is taken from the CMNJAVA skel shipped with the ZMF 8.3 release and handles the generation of CMNBATCH component activation cards on successful build of java source code:


&BPKGNME!&TRAN90!&ENCR90!SLT=&CMPTYPE
)SETF HFSVAR = &STR(&LEFT(&BPKGNME,8)&TRAN90)
)SETF HFSVAR = &STR(&HFSVAR.&LEFT(&ENCR90,5)SNM=&CMPNAME)
)SETF JCLVAR = &LEFT(&Z,80)
)SET FLAG = 0
)DO WHILE &FLAG NE 2
)REXX HFSVAR JCLVAR FLAG REXX=%CMNHFS03
&JCLVAR
)ENDDO
&BPKGNME!&TRAN90!&ENCR90!SID=&STGERID

The processing highlighted above and shipped rexx exec CMNHFS03 ensures that the records generated for inclusion in the staging/build job do not exceed the 80 byte limit:

----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
DEMO   T!     SLT=JVS                                                          
DEMO   T!     SNM=SiJavaPgmButThisOneIsVeryMuchLongerThanUsualAndWillGoBeyond80+
BytesWhenFileTailored.java                                                     
DEMO   T!     SID=USER01                                                       

This, in turn, prevents the type of error detailed above.


#s/
#SupportTips/KnowledgeDocs
#ChangeManZMF
#s/SupportTips/KnowledgeDocs
#s/s/SupportTips/KnowledgeDocs