Copy of multiple members of a PDS to a Sequential dataset results in incorrect output dataset attributes. PDSM1PCC ----------------- COPY : Copy Source Members ------------- Top of data OPTION ===>
Starbat's COPYREC is used to copy sequential data from data set with attributes of RECFM=U, LRECL=257, BLKSIZE=257. Beginning in FDM 7.7.0, the records in the file are getting padded with binary zeroes x'00'. Steps To Reproduce //STEP1 EXEC PGM=STARBAT,REGION=5M
Using DUP or XCOPY, when StarTool sees an LRECL=0, it assumes that the output dataset attributes are incomplete and then performs a non-zero merge of LRECL from the input data set to the output data set. StarTool does not look at the DISP (for example, DISP=SHR) specified for the dataset when performing this process.
If you want FDM to use it’s own internal copy routine and create a sequential dataset with attributes that match the input dataset, then specify ‘Use Record Selection==> YES’. Using the online panels, the specification for record selection follows the allocations for a NEW dataset on panel PDSM1PCC.
What is causing the issue is the NUMBER attributes of the input and output data sets. Note. Use ISPF command PROFILE to determine data set of member settings. attributes of OUTPUT.data => NUMBER is enabled FB lrecl=80 blksize=27920