An warware: tebur

Kuna neman hanya mai sauฦ™i kuma mai araha don ฦ™ara tebur zuwa kayan adonku? Duba zaษ“in zaษ“in tebur ษ—in mu! Daga tebur mai sauฦ™i na katako zuwa tebur na ฦ™arfe masu kyau, muna da wani abu ga kowa da kowa. Bugu da kari, farashin mu ba su da tsada!

An warware: SUBSTRACT

Lallai, yin lissafin ฦ™ididdiga a cikin COBOL na iya haifar da ฦ™alubale a wasu lokuta, amma ana iya shawo kan wannan ฦ™alubalen tare da kyakkyawar fahimta da ฦ™warewar harshen shirye-shirye. COBOL, ฦ™aฦ™ฦ™arfan Harshen Kasuwanci na gama-gari, babban yaren shirye-shirye ne don aikace-aikacen kasuwanci. Harshe ne da ake amfani da shi sosai a tsarin gudanarwa na kamfanoni da gwamnatoci. Yanzu, bari mu nutse cikin maganin matsalar kuma mu rushe lambar ta hanyar mataki-mataki.

Kara karantawa

An warware: FILE VSAM

A cikin duniyar babban kwamfuta, Hanyar Samun Ma'ajiyar Wuta (VSAM) ta zama ginshiฦ™i na asali. Yana ba da damar adanawa, samun dama, da sarrafa bayanai ta hanyar samar da ayyuka fiye da sauฦ™i na tsari da hanyoyin ajiya kai tsaye. Yin aiki tare da fayil ษ—in STATUS VSAM ya ฦ™unshi amfani da Cobol, yaren shirye-shiryen kasuwanci na farko.

Kamar yadda tsohuwar maganar ke cewa, "Matsalar da aka bayyana da kyau ita ce matsalar da aka warware rabin-rabi." A wannan yanayin, ฦ™alubalen da ake fuskanta sau da yawa lokacin aiki tare da fayil na STATUS VSAM ya haษ—a da kurakurai da sarrafa bayanai yadda ya kamata. Sa'ar al'amarin shine, tare da ayyuka masu ฦ™arfi na Cobol da fahimtar fahimtar yadda VSAM ke aiki, wannan matsalar ta zama mai yiwuwa.

Fahimtar VSAM FILES
Mu shiga cikin mafita. Cobol, kasancewa babban yare, yana ba da damar sarrafa fayilolin VSAM ta hanyar samar da jumlar MATSAYI fayil. Wannan sashe yana taimakawa wajen sarrafa kuskure a ayyukan I/O fayil. Madaidaicin tsarin wannan juzu'in shine 'MATSAYIN DATA-suna-1'. A wannan yanayin, `data-name-1` filin haruffa biyu ne inda haruffan farko ke nuna babban matsayi, na biyu kuma don takamaiman dalili (idan akwai).

ZABEN FILESUNA ZUWA 'VSAMFILE'
KUNGIYAR ANA ILMI
YANAYIN SAMUN BANZA
MATSAYIN FILE WS-VSAM-MATSAYI.

Fayil STATUS ษ—in da aka yi amfani da shi anan shine `WS-VSAM-STATUS`, wanda ke nuna matsayin kowane aikin fayil. Ta hanyar duba wannan matsayi bayan kowane aiki, sarrafa kuskure yana zama mai sauฦ™i.

##

Shirye-shiryen Cobol da fayilolin VSAM: Bayanin Code

Da fari dai, sashin SELECT FILENAME yana ma'anar ayyana sunan fayil ษ—in. Sanya wa 'VSAMFILE' yana nuna cewa shirinmu na Cobol zai koma ga fayil ษ—in VSAM ta wannan sunan fayil na alama. Bugu da ฦ™ari, ORGANIZATION IS INNDEXED clause yana ฦ™ayyadaddun cewa fayil ษ—in an tsara shi a cikin tsari mai ฦ™ididdiga. HANYOYIN SAMUN RANDOM yana ba da damar kowane rikodi don samun damar shiga kai tsaye maimakon jere.

Kara karantawa

An warware: gungura mai santsi zuwa rubutun java div

Tabbas, ga labarin da kuka nema:

Kyawawan gidajen yanar gizo na zamani ya ta'allaka ne a cikin mu'amalarsu da amfaninsu. Zuwan JavaScript ya hura rayuwa cikin in ba haka ba a tsaye shafukan yanar gizo, yana tabbatar da gogewar mai amfani. ฦŠayan irin wannan haษ“akawa ya haษ—a da โ€œslutsun gungurawaโ€, haษ—a raye-raye da ฦ™warewar mai amfani mara kyau, jawo hankalin mai amfani da aikin tuฦ™i. {

Kara karantawa

An warware: sake fasalin

Sake fasalin fasali ne mai ฦ™arfi a cikin yaren COBOL wanda ke sauฦ™aฦ™e amfani da ฦ™waฦ™walwar ajiya cikin hikima. Yana bawa mai tsara shirye-shirye damar amfani da sararin ฦ™waฦ™walwar ajiya iri ษ—aya don adana bayanai daban-daban a lokuta daban-daban. Tsarin yin amfani da sake fasalin yana ฦ™ara ฦ™imar ฦ™imar lamba. Don ci gaba da bincika ayyukan, bari mu zurfafa cikin maganinta tare da bayanin mataki-mataki na lambar.

Kara karantawa

An warware: KARANTA FILE

COBOL, ฦ™aฦ™ฦ™arfan Harshen Kasuwanci na gama-gari, ya kasance ci gaba mai dorewa a fannin kasuwanci da kuษ—i tsawon shekaru da yawa. Tsawon rayuwarsa yana nuna mahimmancinsa a duniyar shirye-shirye. Duk da an halicce shi a tsakiyar karni na ashirin, har yanzu yana taka muhimmiyar rawa a aikace-aikacen kasuwanci na zamani, musamman a cikin ayyukan da suka shafi karatun fayiloli. Wannan aikin yana da mahimmanci saboda fayiloli babban matsakaicin ajiya ne kuma karatun bayanan fayil shine babban aikin da ake buฦ™ata a yawancin aikace-aikacen kasuwanci.

Kara karantawa

An warware: Python pygments shigar

Python Pygments babban ษ—akin karatu ne wanda ya zo tare da bakan gizo na dama mai salo. A matsayinka na mai haษ“akawa, yana da kama da samun gabaษ—ayan titin jirgin sama na kyauta a yatsanka. Tare da Pygments, zaku iya tsara lambar ku ta hanyar tursasawa wanda ba wai yana haษ“aka iya karatu kawai ba har ma yana haษ“aka ฦ™warewar mai amfani gabaษ—aya. Wani yana iya cewa, yana kawo sabbin salon salo da kuma abubuwan da ke faruwa daga wuraren shakatawa zuwa wuraren aikin ku na shirye-shirye. Lokaci ya yi da za a koyi yadda ake shigarwa da yin cikakken amfani da Python Pygments.

Kara karantawa

An warware: PRIME NUMBER

Lambobin Prime rike matsayi mai mahimmanci a fannin lissafi da kwamfuta. Mahimmanci, babban lamba lamba ce ta halitta wacce ta fi ษ—aya girma kuma ba ta da masu raba gaskiya sai ษ—aya da kanta. Misali, lambobi shida na farko sune 2, 3, 5, 7, 11, da 13.

Kara karantawa

An warware: bugawa

A matsayina na mai haษ“akawa na COBOL, na fahimci yadda yake da mahimmanci a wargaza matsaloli masu rikitarwa zuwa guntuwar sarrafawa. Hakazalika, a matsayina na ฦ™wararriyar kayyayaki, na kuma fahimci mahimmancin wargaza salo masu sarฦ™aฦ™ฦ™iya da duban yanayin da ake iya fahimta. Bari mu bincika hanyar โ€œbugaโ€ a cikin lambar COBOL da yadda take dacewa da duniyar catwalk da fashion.

Kara karantawa