JCL to create members using Flat File

JCL to create members using Flat File I think you will have to maneuver with PS file created using the IEBPTPCH and you can feed it as SYSIN card in the following JCL. I am leaving it up to you and use your creativity to convert the flat file (created by IEBPTPCH) so that it can be used as SYSIN card here. Note:- The following JCL would however be reading a member instead of a physical sequential file. I could not make a PS work here, it always abended with S013. The following JCL will read the data provided as SYSIN in the member. You can click here ; ; ; ; to know a little more about IEBUPDTE

//IEBUPDTE EXEC PGM=IEBUPDTE,PARM=NEW                      //SYSUT2   DD DISP=(NEW,CATLG),DSN=USERID.NEW.PDS, //         SPACE=(CYL,(5,5,5),RLSE),                       //         RECFM=FB,LRECL=80,BLKSIZE=0                     //SYSIN    DD DSN=USERID.OLD.PDS(CARDIN),DISP=SHR

The contents of SYSIN are as follows

TEXT IN MEMBER ONE WILL COME HERE   

This will create a PDS with member name MEMBER1 in the new pds You can go through the IBM manual to know more about