mainframe - Generation Data Groups (GDG) -


if (+1) generation dataset created in first step of job, how can referenced in later steps of same job input?

once job step creating (+1) generation data group (gdg) file has completed, recent gdg file (+1).

the current gdg not become 0 until after job ends or abends.

here's example 1 of our batch jobs.

//step05   exec pgm=outbound,region=4m,time=60                 //steplib  dd  dsn=m5.m593cllv.load,disp=shr                   //systcpd  dd  dsn=m5.m51tcdlv.ibm.tcpparms(tcpdata),disp=shr  //indd1    dd  dsn=j3.j3dvlp.w.j1ppb70.rdexfile(+1),disp=old   //obnstat  dd  dsn=j3.j3pzoutb.dvlp.obnstat,disp=shr          //sysprint dd  sysout=*                                  //sysudump dd  sysout=*                                 //sysin    dd  dummy        

this not practice, restarting after abend becomes difficult. have change of gdg (+1) (+0) or (0).

better practice create ordinary file use throughout job. then, in last job step, copy ordinary file gdg (+1).


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -