0% found this document useful (0 votes)
94 views18 pages

Day1 Cobol

nice

Uploaded by

Yashraj Pawar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
94 views18 pages

Day1 Cobol

nice

Uploaded by

Yashraj Pawar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 18
_ Day-L ®.- . © pt, os ipepugae, Copor-7 commen Business Orterited Languag Featunos . 7 Grctuned ond mmo dul arized id 7 English Vike: lorngquage A my 1a Ce J] Reowt fh shudte : a Doougging and Auting Hoole, LAY OUT. ——— - Wf Always — preegroumnnad: moe ePDE Memb ar PRECL= 0, BLKNRE= DOO ond a. FB. 1- @ Columns ) L sequance sMUMbau J 4 40 idantiPy oer ting “Unify, + pepledea by tne -stero itsall, gon contain, onanacton 9% wal, = i colummaq. b Sy ubed for spavi Pung eghethert, | comment ne — CR)” Cenfinuahan fine 2 Reid ae page brea 1 CS DESEO . i. Nedicat ore : naa |. | Ime is column - & FH ek by tuted Por coding Scanned with CamScanner columa S-ll CARae A) @ Column 1a=ta CAnea B) alee a Gonenakad No) column 43°30 ¢ Systom KR COBOL ts, - based On EBCDIC ohanacton Sof a English Cuc Ff Leye if 4 yy On4 “7 Spacer comets Aur qeores ete : fae) [oma | TRoomge coms] [Oeenatdrnoe JF Eeopa ERR] ae . _ Svotanies') ef chanaclens : {2 : -"copot. iaotds Bir bid sq oo longg Mar 32 Stokoments - SY Atacti cally Nadi, ear bmatH ay OL werd Gard, SYMbsls hich kogne curly : au. DISPLAY MEssAcia copa VERR, : Sontonc - Ong om mone. COBOL stabomanty Ending why a oa VDUSPEAY MESSAGE . : SS San\or ea, O Cop VERB. Scanned with CamScanner _— pongeagh Ong ON MONA send ances, Ondy curt pant od ee gection + — Logieat division a pregnam @) eaanaeeet . C Ong BR’ pone panagnah) - eA pangraph tasiag & Sackon mut bE usique, . Drwisen _ C Pandpal pacten ) RK Adoni Heation vy Ask and Only Mandetrany! Aitision ry a fore idannPying the preognem ] pRogramid te tha Snliy Manders Paragraph programid a pregneum Crane Cl- 30 Characteny) % Environe ment Lz Used to access Outside data ee ery 7 Mariattes or@agPned 0 a ctetka * “prgcesne Ly RW! tho” Vegical Ploes 4 & #2 .prsaram % Division, Backon , Pancgnaph's name shoud Brant Prusm’ ction fi. GH vourreudes ocd R Logic - Arca B&B ea x ‘this is (now - We — ‘ centtnug sttma in coBet 4 ot 2 itt Scanned with CamScanner Se | Commang NUM oN STD. COB +7 Shaws by 9 columes F- FQ) H Weer L6H one i‘ a anerar ed iy Widdon Parumdt ane se UNNOM = Tet AQ 16 A 280-00, COBOL. ERCDIC ., Cheurxrctang ue ean “Uo undorreng, Caddad, fum wou M0) Copor word 7( (eHer, argitt, Undangcene, ‘ny phen ) i san” ddmmad: words -Shootd lo@. cniewe, | Groulal not’ Moron, rth PHAQRAM names, | yarianla Name, paragraph Names, | noonvad weds, | Sy rassennam BO characte, Scanned with CamScanner a ont : a gqatonontt 2 yatta comb? of world Ha SHMbale ago — shart WA CAROL, haw , eay DISPLAY | MESS AGIE, and ange 7 One OR Mond” tatamonfh — ENAMS coh a penad BLY — DUSPLAY MESSAME . Paragraphy > Ana oT Mone Kentantes endiyy gurty a paride, can bE both Lang enfreed Nd wien delmed iq SRogram tp. BEMOLOT Lang onfer se ported. —— TAove~ MAEN-.PARAs S_ User Anos pisnhay MESSAGE. | stop RUN. | Sect. 4 Ore str mane WAKE parsgterns 4 Sogkan name na vont Reson veg | wond SECTION sd & yore TOENTLEL CATION — DIVISION J Mrangatn EN VIERONNAENT DINAN ' Sea ee NATH DIVISION opr PROCEPURE Prvisy ont Scanned with CamScanner FIRST CoRol PROGIRAN ® CS te FIM ~ TDENTIEICATION DIVISION K PRoGRAM ID. Gemol 7 | Membar means. ne id same PROCEDURE PIVISLON + pregnam OUspeay ‘Herre AWARDS STP. RUN. Ly Pon 1 Fon compiling {FERRY MY SckUB ORDER = ais stepo4 | i EREC™ "pRbe Hi CoBAG Source = PROGRAM 2 ,DEMOA.” @ Pree 7 BOL IS prayent om. “We poei~ RE mankonta, STEROL inves “tna pees compile.» wd) hun, the g Preatar . the Prog dune ako gouree where Bounce Code C eps | nome cnone pesyrar | ig wut) 5 he, rapeane peeansm m JELLLB: arog SU mame 4 A sYmbsic parameter, Scanned with CamScanner ee: oBoL’ “PROCEDURE Copel “PR @D ly \k has A Steps Compt Le 4 LInKEDET: COMPILE . a beam -(Eayenerye prowided compiler.) 2 by | pcompiLe BREXEC PAM > FAVCRCH PARM =* DYNAM RENT, Lt8, SSSI, | hr DERSET, APOST, OPTIMIZE ' t REGION = BOK + A STEPLEB, (Dp PSN = Ty. siciycomP, irs SHR, ( sustn pp DSN =H SOURCE C A PRAGIRAM.), ~ DIS? = SHR tt comptes: J..cthen Stata. 1m LDA LoOADSET Chomp data set) Ve wsenty 28 input to LINRIEDIT stop, If Unter exec ram = GIN) Spocuty FF CHvOs out pur m led Media Chien tg Preeont (me ces) — Local |p eee Scanned with CamScanner Loadiib 7 It is am undelmoa spore detour Ot> — i ® For Gracwtny Sat 2 : 4 ~ PaM = DEMOL steeped SxEC psp = SHIR pr QShies N gtepeee : name A Pe ram NR, Ye Lead modwe is Same ae oo ‘ atid ne" Shepitoy NRE, toaa Modules ™ . Dispray F RuN ! a ' an , ay FOUgtes i artes ye DISPLAY “pv Daplawd, litera, om oo wayue og Oak ae Termin ro programy > RUN ~ ee srr ho recut 4 hae 00 fordga, | FL ‘ed eat yok OHO33 coband ee Scanned with CamScanner _ | cope VARIABLE (Co * ' cor ; @) Destanad 10 THA data tivegion, me Loca wramiabslay IAoRKINIG STORAGE SECTion, 8 DATA DANSON » WORK NIG STORAGE SECTION. | ol cusToMeR Ac A CVd) ~] Doctarrer on, iN f\ pionanch} . paphalearCr, Sey eveh eure a Y aye * ’ I ©] CUSTOMERS PNG acto) VALVIE “SOHN ~ b sOOE f Vent O1 AGE Pie “AC2) ,NALUE 30, “ me ov BALAN@E PIC aturivat?) VALVE (000.28 oy Cd oy MG, BR Cee) VA : ) ' a %K- Atphoncumenre. A csizey vaccine) 7 Dewi y AC SIAED ~7 Mphabok 7 Space ACSHAE)—-] ME Scanned with CamScanner PRocepurREe =D) visron!. @ Aooo- MAIN. 1 COSTOMER. Disp LAY ae a : ae 1 pis pLAY AGE \ } stop ‘RUN, DePiaitior TA be 7 yA Lovalnn — noumg, PS prypacsxe) yasseQVRN « aa Ot otdy A Wa ane GM a x =: wat yvac) eatin, Ly vig aos os ousumas Sey pent uth inumance tyne tuk tH deaant, CCCP an memory. (Neue clawie it option [aavad acsywacr, | Scanned with CamScanner eet pec See Qo 30> 000.32 7 Numeric Quotes 1 Need, cae Ai ta non - Hema ¢ Auoreg naeded \ Oy wud “ual I yaam's brother!” PICTURE | VALUE —o ae Figura. Constant Ajo OR Se Sat ee ; AML dikencut’) | _ Bis con copes ied i ZERO / REROE / LEROES wen Zon sey, | SpRCE 7 SPACES cath, Spars cranacron vir Wigh a HIGH - MALYIE RICHES Low - VALUES Lolate VALUES Quote | QUOTES DATA Division. “INOREING STORAGE SECO Oo. Ws-NAME” Pie Ach) 1 | As -NUM BER pice Ad. OV (Ns = —S TRING Ple RUF) Ni VALU. 01 wats = Hee} ol -We- DOW Pe xXCH) 1 Spas Sy 1 raivss at 00" \ 5 2enses Y YRNANANANAYAYTY YF Natag, wet hor co a creridaran: 4 Qos le CoH - bupeske Pees wave AL ‘Y?’ Ped yet) MALE € ZEROEG ENectl- VALVES VALUE, Low VAHec wee” Scanned with CamScanner Move D> Alphaneamente Neunent ~~ Poo = Alphatoots 4 Alphanemowe rp) Neunonte Qe oO sR ine rie) ACIS) ov string2 PIG XC). Move ‘HELLO WORLD % TO STRING TL. MOVE ‘ WeLome To Copot! 40° STRIMGIA« Wetbtol Tales re rr a Ns: 4 Te . TAT Blah Lip R,, 2 TAIN Grae nleletctoTmte T Trfoy ce’ Bee Hah sommes oy. StRINGL "ple. Acts). dustin RACH) Sp mange athe onda Aa Movarang. rete tee By Late Feel Te) “blank a Scanned with CamScanner eee 7-7-7 -o-o Numer ig allignea be Beno moves « pecimad pear ge Pe decimal hen cima’ Cr WL nd Ke oy -UNCKCUpIad — MAMNENY ig Congedonad oy Os ee ite outpt ==> YS 1a5.45e > TRB Yon Aemyvadl2 i oxtpi 24 | A or WWs-A pie ous) VANE gars, | or Wws-8 mc * cu). PROCEDURE prvisron. yn Move” Ins: TS INS Be DEEPER NEB, TT, ANS mAaT sro? RUNG I —— ae 4 | ae : a Q : : ol e-aee OPic xte) VALUE ae is-B ple aca ON ol Noe procenons Dvn... TATSIT I, mere INGA qo WS-B- prspray WEB. =? ae : Glo Stor RUN. ‘Scanned with CamScanner Codrn Sra y oe a K Ns = prasad Varic!'e rme) fon. ae Stones? LOCHM ye PIL Show Stan ot 1 ye \MLU E> shoud gant e? * THRYD ol no US % Tod YO ENT : : oS . idan yy : 4 Nn axoeutdble + Starament oad 40_ 108 fy tha andy Bh a paregneph, Von eacg SS fooe - MAIN. RO I ci ‘ PERFORM, 000 --DNITIALI 2 HRY Bose PERFORM ©000- CALCUL RHR. TARY, C000 “OAT PERPeRM HOS” DISPLAY = THRY PON” oA peRcoR X00 PINNSH sRy <020- HF 000 @\IT : ax, pes JDNUTIAL 53 000 - CAT i eit: Scanned with CamScanner HK APYoR exocution dt R900 “Initiating. Hill Brod Qontrol comes Jo “WW. MOA porform, () ot N 7 nip PARA T. oe csyarang POR? THRY < TNITIAUZE 7 ves thie uted to prod daauth vanes VoricttcloA, Deouggng T- Indormanwe Grier. E - Ena g — SOvane ee ee lal - aro, ; . COMpoTE VERB puso AAT | ROR Ly +0 compete COMP UTES opts + Ince AMOUNT RINE as -P gente inst, cpig = PRMVEPLEE WS” too END coMpoTe.” a peers. wm i ee Pa eee Scanned with CamScanner “Rounded claw & 2 Inte “AMooNT = Ke QUES. FAT a la blel 4 WaAeunT eee? Rouneen = ANS 974 « lnts - AMOUNT meeRET el wis. Amount = &M43: sat Compute ITH. BRE ERROR See grees ee conpuTe wy -anjoonr ROUNDED = fig — PRINCUPHIE é oN Size ERROR DISPLAY, " ERROR! Noy ON SRE ERRORL | Disp ws - AMour eno - ope — 4 Scanned with CamScanner ye Pre Tovnded Athan of sre orn. Bung « Hoon, ON SIRE ERRER, yn toh a — Capes a END- comp vTE~ Compute Vetrwaite AR TTHY etc, VERBS vp & ADD VARNAME : aR" ape Stored +) pane ! TO VAR eae hey VARS PS do VAR END-ADD. ADD. VARY ped ene 4p Ete q ae in, YARE sug siRACT ee : . % aupstRAc VRE HREM RA EH SOBOMAT a WRAL VRE PLIvIn” VR3 BSR ACT - stones VR FRE &® END” SO Oe iy VRS arnend + (tent) ah Vou 2; % SupsTRAT NR 4-7 G o NVR cNewn Mramane 7 Scanned with CamScanner te. | Pr MU LITT PLY ona DNIDE ® oe Mont ply VRE BY MRD Ento < MULTIPLY A van {De NL, Mummy VRE BY _NR2-’GAVING, VR2 END. MULT pry s mttaer aeed, ye pine URA BY. VRA GAWING : VRB Enp-BIviDk & ) CAVIN y pide = VRL. By ny WIM Gs VRS, REmaAinipeR NRA END DIVIDE. xe pring, NRA INTO VRD T Givin § vie. ara. REMAINDER V4 END PY \ (CP Guving, Nor cenanttones, 161 Koned 1 VRA Scanned with CamScanner

You might also like