You are on page 1of 5

6/1/12

Fl Hnln i CBL ie adig n OO

COBOL file handling

Fl:Afl i acleto o dt rltdt asto ie ie s olcin f aa eae o e f ette adtpclyeit o amgei tp o ads. niis n yial xss n antc ae r ik W rfrfl a P i Mifaeevrnet I fl dt e ee ie s S n anrm niomn. n ie aa i ognzda rcrs Ec rcr i dvddit sto s raie s eod. ah eod s iie no e f fed. ils

Freapedt rltdt epoe fl wihcnit o o xml aa eae o mlye ie hc osss f epoe I,epoe nm,epoe Acut mlye D mlye ae mlye con.

0 W-M-E. 1 SEPRC 0 W-M-D 2 SEPI 0 W-M-AE 2 SEPNM 0 W-M-CT 2 SEPAC

PCX0) I (7. PCX2) I (0. PCX0) I (6.

I ti aoefl dt i ognzda mlil rcrsec n hs bv ie aa s raie s utpe eod ah cnit o 3 bts Dt nm W-M-E i rfre a osss f 3 ye. aa ae SEPRC s eerd s rcr.W-M-D W-M-AEad W-M-CTi rfre a eod SEPI, SEPNM n SEPAC s eerd s Fed.Cmltv sz o alfed i cniee a rcr ils uuaie ie f l ils s osdrd s eod lnt.Afl cnb casfe a fxdo vral lnt egh ie a e lsiid s ie r aibe egh fls I fxdlnt fl,sz o alrcrsms b sm ie. n ie egh ie ie f l eod ut e ae bti vral lnt fl rcr lnt cnb vr uo sm u n aibe egh ie eod egh a e ay pn oe fed wihaentcmo.Teaoerfre W-M-E i a ils hc r o omn h bv eerd SEPRC s n eapefrfxdlnt fl. xml o ie egh ie

Flsaefrhrcasfe it 3tps ie r ute lsiid no ye. 1 SQETA OGNZTO . EUNIL RAIAIN 2 IDXSQETA OGNZTO . NE EUNIL RAIAIN 3 RLTV OGNZTO . EAIE RAIAIN

Sqeta ognzto: eunil raiain I mifaeevrnetw hv 2tpso sqeta fls n anrm niomn e ae ye f eunil ie. 1 Fa fl (O-SMSqeta fl) . lt ie NNVA eunil ie 2 Etysqeta dt st(SMED) . nr eunil aa e VA SS

Bt tp o flscetduigdfeettp o Soae oh ye f ie rae sn ifrn ye f trg ognzto. raiain Sqeta fls Tercrsaesoe i tefl i te eunil ie: h eod r trd n h ie n h sm odri wihte aeetrd Hr,tercrscn ae re n hc hy r nee. ee h eod a b acse ol sqetal.T poesayrcr,oe e cesd ny eunily o rcs n eod n hst ra alispeeigrcrs Frhr rcrs a o ed l t rcdn eod. ute, eod cno b isre o dltd Sqeta flsaesmls ant e netd r eee. eunil ie r ipet t hnl,te aehgl ifeil a te d nt o ade hy r ihy nlxbe s hy o o fcltt isrinaddlto o rcrs aiiae neto n eein f eod. Fl oee wt Etn Md apnstewiigrcrsa ie pnd ih xed oe ped h rtn eod t teedo tefl.I CBLpormteei n mc dfeec h n f h ie n OO rga hr s o uh ifrne btenteetotps I yuaeacsigED VA fl, ewe hs w ye. f o r cesn SS SM ie te i CBLpormsol cddlk ti. hn n OO rga hud oe ie hs
www.mainframegurukul.com/tutorials/programming/cobol/cobol-file-handling.html 2/6

6/1/12

COBOL file handling

SLC FL ASG T A-DAE EET IE SIN O SDNM.

Atal D nm mthswt JLD Nm.Bti CBLPorm culy D ae ace ih C D ae u n OO rga DNMssol b peie wt A-(ncs o VA ED fl). DAE hud e rfxd ih S I ae f SM SS ie I yuaentdigta te a S1 AEDmgtocrwe f o r o on ht hn n 23 BN ih cu hn atmtn t oe dt st tepig o pn aa e.

IDXSQETA OGNZTO: Rcrsi ti fl aesoe NE EUNIL RAIAIN eod n hs ie r trd bsdo akyfedwihi pr o rcr adti i as ae n e il hc s at f eod n hs s lo cle a idx Rcrsi ti fl aeacsil i sqet ald s ne. eod n hs ie r cesbe n eunil,dnmc&rno md.A idxsqeta fl i cnea yai adm oe n ne eunil ie s ocp tal md u o tofls adt fl ada idxfl. uly ae p f w ie, aa ie n n ne ie Tog tercrsaesoe i teodri wihte ae huh h eod r trd n h re n hc hy r etrd asre idxi mitie wihrltsteky nee, otd ne s anand hc eae h e vlet tepsto o tercr i tefl adhnepoie au o h oiin f h eod n h ie n ec rvds awyt acs tercrsbt sqetal adrnol. a o ces h eod oh eunily n admy

RLTV OGNZTO:Ti fl i dvddit fxdnme EAIE RAIAIN hs ie s iie no ie ubr o sosec so hsoercr.Ti i ietfe a f lt ah lt a n eod hs s dniid s rltv rcr nme.Teacs mto soe adrtivs eaie eod ubr h ces ehd trs n eree arcr,bsdo isrltv rcr nme.Rcrscnb eod ae n t eaie eod ubr eod a e acse a sqetal o rnol o dnmcly Ti cesd s eunily r admy r yaial. hs rltv flsfse acs cmae t ohr2ognztos eaie ie atr ces oprd o te raiain. Bti sm o teitreit rcrsaemsig te ocp u f oe f h nemdae eod r isn, hy cuy sae pc.

Fl dcaaini CBLPorm ie elrto n OO rga: T mk ueo flsi CBLpormsat i FL-OTO i o ae s f ie n OO rga trs n IECNRL n EVRNETDVSO. NIOMN IIIN

SLC [PINLlgclfl-aeASG T pyia-ienm. EET OTOA]oia-ienm SIN O hsclfl-ae [ RSREitgr{RA AES] ; EEV nee AE, RA} [ OGNZTO I SQETA] ; RAIAIN S EUNIL [ ACS MD I SQETA] ; CES OE S EUNIL [ FL SAU I dt-ae ; IE TTS S aanm]

Freape. o xml.. SLC EPIEASG T EPIE. EET MFL SIN O MFLO

www.mainframegurukul.com/tutorials/programming/cobol/cobol-file-handling.html

Hr i CBLPormw rfrti fl a EPIEbtpyial ee n OO rga e ee hs ie s MFL u hscly teei n fl eit wt ti nm.Fraykn o oeain hr s o ie xss ih hs ae o n id f prto aanttefl isd teporm mk sr yuueLgcl gis h ie nie h rga, ae ue o s oia nm ol ie EPIE Aoesnec EPIE i ampigta ae ny .. MFL. bv etne MFLO s apn ht cnet fo lgclfl t pyia fl.I maswaee oncs rm oia ie o hscl ie t en htvr

3/6

6/1/12

cnet fo lgclfl t pyia fl.I maswaee oncs rm oia ie o hscl ie t en htvr oeain w d i CBLpormaanttelgclfl EPIE prtos e o n OO rga gis h oia ie MFL toewl b rfetdo Pyia fl. hs il e elce n hscl ie

COBOL file handling

I JL.Ti fl i rfre a n C..hs ie s eerd s /EPIE D DND1.AHDEPY /MFLO D S=G1CPY.MHD

Pyial dt soe i D1.AHDEPY i sse.Oeain hscly aa trd n G1CPY.MHD n ytm prtos aantEPIEwl b rfetdi D1.AHDEPY. gis MFL il e elce n G1CPY.MHD

Yums seiySLC OTOA frtoeiptflsta aent o ut pcf EET PINL o hs nu ie ht r o ncsaiypeetec tm teojc pormi eeue.Fls eesrl rsn ah ie h bet rga s xctd ie wt OTOA oto cnb oee uigIPTIO ETN md. ih PINL pin a e pnd sn NU,-, XED oe

RSREitgr{RA AES EEV nee AE, RA} RSRE2AESti isrcssse aotalcto o bfes EEV RA hs ntut ytm bu loain f ufr wiepoesn lreflssoe o ds o tps i i iefhl rcsig ag ie trd n ik r ae, t s nfi cett ra o wiesnl rcr a atm.Ised teuul in o ed r rt ige eod t ie nta, h sa patc i t gopanme o cneuiercrst fr wa rcie s o ru ubr f osctv eod o om ht i kona apyia rcr o aboktenme o rcrsi s nw s hscl eod r lc h ubr f eod n aboki tre a tebokn fco.Teeaetoavnae lc s emd s h lcig atr hr r w datgs o bokn lgclrcrsit apyia rcr.Frty i f lcig oia eod no hscl eod isl, t rslsi svn teIOtm rqie frpoesn afl ad eut n aig h / ie eurd o rcsig ie n scnl i rslsi svn tesoaesaefrafl. eody t eut n aig h trg pc o ie

Freapet sac frarcr fl hst ra sqetal, o xml o erh o eod ie a o ed eunily i ec rcr i raigfo Ds a atm wihi tm cnu f ah eod s edn rm ik t ie hc s ie osmn i odrt sedteacs o rcrs acul rcrsae ig n re o pe h ces f eod, ope eod r ra fo DS adke i itreit soaecle bfe.Fr ed rm IK n ep n nemdae trg ald ufr o sqeta acs alcto o lrebokszsfse teacs. eunil ces loain f ag lc ie atr h ces Frrno acs asalboksz fse teacs o rcrs o adm ces ml lc ie atr h ces f eod.

OGNZTO I SQETA: RAIAIN S EUNIL I dsrbstefl ognzto. t ecie h ie raiain Frsqeta flsOGNZTO I SQETA o eunil ie RAIAIN S EUNIL FrIdxdfls OGNZTO I IDXD o nee ie RAIAIN S NEE. Frrltv flsOGNZTO I RLTV. o eaie ie RAIAIN S EAIE

ACS MD I SQETA: CES OE S EUNIL Ti snec ietfe tei wihmd tefl i gigt hs etne dniis h n hc oe h ie s on o b acse. e cesd

Frsqeta acs o eunil ces Frrno acs o adm ces FrDnmcacs o yai ces

ACS MD I SQETA CES OE S EUNIL ACS MD I RNO CES OE S ADM ACS MD I DNMC CES OE S YAI

www.mainframegurukul.com/tutorials/programming/cobol/cobol-file-handling.html

Dnmcacs i acmiaino rno adsqeta acs. yai ces s obnto f adm n eunil ces

4/6

6/1/12

COBOL file handling

Dnmcacs i acmiaino rno adsqeta acs. yai ces s obnto f adm n eunil ces

FL SAU I dt-ae IE TTS S aanm: Fl sau i ue t ietf tesau o ec oeainta ie tts s sd o dniy h tts f ah prto ht i promdaanttefl.Frisac.FL SAU I W-TTS s efre gis h ie o ntne IE TTS S SSAU. Ti W-TTSdt nm dcae epiil i Wrigsoaescin hs SSAU aa ae elrs xlcty n okn trg eto. 0 W-TTS 1 SSAU PCX0) I (2.

Atrpromn ec oeaino fl i i go patc t fe efrig ah prto n ie t s od rcie o cektefl sau cd wehrteoeainwsscesu hc h ie tts oe hte h prto a ucsfl o nt bsdo ti aporaeato i promd I fl r o, ae n hs prpit cin s efre. n ie hnln 0 i ietfe a scesu eeuin adig 0 s dniid s ucsfl xcto.

FL SAU IE TTE 0 0 1 0 2 2 2 3

Maig enn oeainscsfl prto uesu Edo rcr n f eod Dpiaeky ulct e Rcr NtFud eod o on

Frmr fl sau cd cikhr o oe ie tts oe lc ee

Fl rcr dsrpini dcae i FL SCIN ie eod ecito s elrd n IE ETO. I fl scin n ie eto F EPIE D MFL [ RCR CNAN itgr1CAATR] ; EOD OTIS nee- HRCES [ BOKCNAN itgr2{EOD,CAATR} ; LC OTIS nee- RCRS HRCES] [ DT {EODI,RCRSAE dt-ae1[ dt-ae2 ... ; AA RCR S EOD R} aanm- , aanm-] ] 0 W-M-E. 1 SEPRC 0 W-M-D 2 SEPI 0 W-M-AE 2 SEPNM 0 W-M-CT 2 SEPAC

PCX0) I (7. PCX2) I (0. PCX0) I (6.

F i abeitdfo FL DSRPIN D s brvae rm IE ECITO. TeRCR CNAN cas seiistesz o telgclrcrs h EOD OTIS lue pcfe h ie f h oia eod. Hr RCR CNAN 3 CACES ee EOD OTIS 3 HRTR

TeBOKCNAN cas seiistesz o tepyia h LC OTIS lue pcfe h ie f h hscl rcrs I tercrsi tefl aentbokd BOK eod. f h eod n h ie r o lce, LC CNAN cas cnb oitd We i i oitd tecmie OTIS lue a e mte. hn t s mte, h oplr asmsta rcrsaentbokd Ee i ec pyia sue ht eod r o lce. vn f ah hscl rcr cnan ol oecmlt lgclrcr,cdn BOK eod otis ny n opee oia eod oig LC CNAN 1RCR wudrsl i fxdbokdrcrs OTIS EOD ol eut n ie lce eod.

TeDT RCR cas seiistercr nmsdfndfrte h AA EOD lue pcfe h eod ae eie o h
www.mainframegurukul.com/tutorials/programming/cobol/cobol-file-handling.html 5/6

6/1/12

TeDT RCR cas seiistercr nmsdfndfrte h AA EOD lue pcfe h eod ae eie o h fl.Hr DT RCR I W-M-E. ie ee AA EOD S SEPRC

COBOL file handling

NEXT CHAPTER TOPIC : COBOL

Visit COBOL books section in this site for good books

Home | Donations | Online Tutorials | Books | Entertainment | Contactme | privacy | sql tutorial | jcl interview questions | JCL Tutorial | JCL Tutorial - chapter1 | JCL Tutorial - chapter2 | JCL Tutorial - chapter3 | JCL Tutorial chapter4 | JCL Tutorial - chapter5 | JCL Tutorial - chapter6 | JCL Tutorial - chapter7 | JCL Tutorial - chapter8 | JCL Tutorial - chapter9 | JCL Tutorial - chapter10 | JCL Tutorial - chapter11

www.mainframegurukul.com/tutorials/programming/cobol/cobol-file-handling.html

6/6

You might also like