SlideShare una empresa de Scribd logo
1 de 36
UNSTRING
UNSTRING Syntax. ,[object Object],[object Object]
How the UNSTRING works ,[object Object],[object Object],[object Object]
UNSTRING Termination ,[object Object],[object Object],[object Object],[object Object]
UNSTRING clauses. ,[object Object],[object Object],[object Object],[object Object],[object Object]
The UNSTRING clauses 2. ,[object Object],[object Object],[object Object]
UNSTRING Example 1 01 DayStr  PIC XX.   01 MonthStr PIC XX.   01 YearStr  PIC XX.   01 DateStr  PIC X(8). 1 9 - 0 5 - 8 0 ACCEPT DateStr. UNSTRING DateStr   INTO DayStr, MonthStr, YearStr ON OVERFLOW DISPLAY "Chars Left" END-UNSTRING.
UNSTRING Example 1 01 DayStr  PIC XX. 1 9   01 MonthStr PIC XX.   01 YearStr  PIC XX.   01 DateStr  PIC X(8). 1 9  - 0 5 - 8 0 ACCEPT DateStr. UNSTRING DateStr   INTO DayStr , MonthStr, YearStr ON OVERFLOW DISPLAY "Chars Left" END-UNSTRING.
UNSTRING Example 1 01 DayStr  PIC XX. 1 9   01 MonthStr PIC XX. - 0 01 YearStr  PIC XX.   01 DateStr  PIC X(8). 1 9  - 0  5 - 8 0 ACCEPT DateStr. UNSTRING DateStr   INTO DayStr, MonthStr,  YearStr ON OVERFLOW DISPLAY "Chars Left" END-UNSTRING.
UNSTRING Example 1 01 DayStr  PIC XX. 1 9   01 MonthStr PIC XX. - 0 01 YearStr  PIC XX. 5 - 01 DateStr  PIC X(8). 1 9 - 0  5 -  8 0 ACCEPT DateStr. UNSTRING DateStr   INTO DayStr, MonthStr, YearStr ON OVERFLOW DISPLAY "Chars Left" END-UNSTRING.
UNSTRING Example 1 01 DayStr  PIC XX. 1 9   01 MonthStr PIC XX. - 0 01 YearStr  PIC XX. 5 - 01 DateStr  PIC X(8). 1 9 - 0 5 - 8 0 ACCEPT DateStr. UNSTRING DateStr   INTO DayStr, MonthStr, YearStr ON OVERFLOW DISPLAY "Chars Left" END-UNSTRING. Chars Left
UNSTRING Example 2 01 DayStr  PIC XX.   01 MonthStr PIC XX.   01 YearStr  PIC XX.   01 DateStr  PIC X(14). 1 9 s t o p 0 5 s t o p 8 0 ACCEPT DateStr. UNSTRING DateStr DELIMITED BY "stop"   INTO DayStr, MonthStr, YearStr ON OVERFLOW DISPLAY "Chars Left" END-UNSTRING.
UNSTRING Example 2 01 DayStr  PIC XX. 1 9   01 MonthStr PIC XX.   01 YearStr  PIC XX.   01 DateStr  PIC X(14). 1 9   s t o p  0 5 s t o p 8 0 ACCEPT DateStr. UNSTRING DateStr DELIMITED BY "stop"   INTO DayStr,  MonthStr, YearStr ON OVERFLOW DISPLAY "Chars Left" END-UNSTRING.
UNSTRING Example 2 01 DayStr  PIC XX. 1 9   01 MonthStr PIC XX. 0 5 01 YearStr  PIC XX.   01 DateStr  PIC X(14). 1 9 s t o p  0 5   s t o p  8 0 ACCEPT DateStr. UNSTRING DateStr DELIMITED BY "stop"   INTO DayStr, MonthStr,  YearStr ON OVERFLOW DISPLAY "Chars Left" END-UNSTRING.
UNSTRING Example 2 01 DayStr  PIC XX. 1 9   01 MonthStr PIC XX. 0 5 01 YearStr  PIC XX. 8 0 01 DateStr  PIC X(14). 1 9 s t o p 0 5 s t o p  8 0 ACCEPT DateStr. UNSTRING DateStr DELIMITED BY "stop"   INTO DayStr, MonthStr, YearStr ON OVERFLOW DISPLAY "Chars Left" END-UNSTRING.
UNSTRING Example 3 01 DayStr  PIC XX. 1 9   01 MonthStr PIC XX.   01 YearStr  PIC XX.   01 DateStr  PIC X(8). 1 9   -  0 5 / 8 0 ACCEPT DateStr. UNSTRING DateStr   DELIMITED BY "/" OR "-"   INTO DayStr  DELIMITER IN Hold1 MonthStr DELIMITER IN Hold2 YearStr END-UNSTRING. DISPLAY DayStr SPACE MonthStr SPACE YearStr. DISPLAY Hold1 SPACE Hold2
UNSTRING Example 3 01 DayStr  PIC XX. 1 9   01 MonthStr PIC XX. 0 5   01 YearStr  PIC XX.   01 DateStr  PIC X(8). 1 9 -  0 5   /  8 0 ACCEPT DateStr. UNSTRING DateStr   DELIMITED BY "/" OR "-"   INTO DayStr  DELIMITER IN Hold1 MonthStr DELIMITER IN Hold2 YearStr END-UNSTRING. DISPLAY DayStr SPACE MonthStr SPACE YearStr. DISPLAY Hold1 SPACE Hold2
UNSTRING Example 3 01 DayStr  PIC XX. 1 9   01 MonthStr PIC XX. 0 5   01 YearStr  PIC XX. 8 0 01 DateStr  PIC X(8). 1 9 - 0 5 /  8 0 ACCEPT DateStr. UNSTRING DateStr   DELIMITED BY "/" OR "-"   INTO DayStr  DELIMITER IN Hold1 MonthStr DELIMITER IN Hold2 YearStr END-UNSTRING. DISPLAY DayStr SPACE MonthStr SPACE YearStr. DISPLAY Hold1 SPACE Hold2
UNSTRING Example 3 01 DayStr  PIC XX. 1 9   01 MonthStr PIC XX. 0 5   01 YearStr  PIC XX. 8 0 01 DateStr  PIC X(8). 1 9 - 0 5 / 8 0 ACCEPT DateStr. UNSTRING DateStr   DELIMITED BY "/" OR "-"   INTO DayStr  DELIMITER IN Hold1 MonthStr DELIMITER IN Hold2 YearStr END-UNSTRING. DISPLAY DayStr SPACE MonthStr SPACE YearStr. DISPLAY Hold1 SPACE Hold2 19 05 80 - /
UNSTRING Example 4 01 DayStr  PIC XX.   01 MonthStr PIC XX.   01 YearStr  PIC XX.   01 DateStr  PIC X(8). 1 9 - 0 5 / 8 0 ACCEPT DateStr. UNSTRING DateStr   DELIMITED BY "/" OR "-"   INTO DayStr  DELIMITER IN Hold1 MonthStr DELIMITER IN Hold1 YearStr END-UNSTRING. DISPLAY DayStr SPACE MonthStr SPACE YearStr. DISPLAY Hold1
UNSTRING Example 4 01 DayStr  PIC XX. 1 9   01 MonthStr PIC XX. 0 5   01 YearStr  PIC XX. 8 0 01 DateStr  PIC X(8). 1 9 - 0 5 / 8 0 ACCEPT DateStr. UNSTRING DateStr   DELIMITED BY "/" OR "-"   INTO DayStr  DELIMITER IN Hold1 MonthStr DELIMITER IN Hold1 YearStr END-UNSTRING. DISPLAY DayStr SPACE MonthStr SPACE YearStr. DISPLAY Hold1 19 05 80 /
UNSTRING Example 5 01 DayStr  PIC XX.   01 MonthStr PIC XX.   01 YearStr  PIC XX.   01 DateStr  PIC X(11). 1 5 - - - 0 7 - - 9 4 ACCEPT DateStr. UNSTRING DateStr   DELIMITED BY  ALL "-"   INTO DayStr, MonthStr, YearStr   ON OVERFLOW DISPLAY "Chars Left" END-UNSTRING.
UNSTRING Example 5 01 DayStr  PIC XX. 1 5   01 MonthStr PIC XX. 0 7   01 YearStr  PIC XX. 9 4 01 DateStr  PIC X(11). 1 5   - - -   0 7   - -   9 4 ACCEPT DateStr. UNSTRING DateStr   DELIMITED BY  ALL "-"   INTO DayStr, MonthStr, YearStr   ON OVERFLOW DISPLAY "Chars Left" END-UNSTRING.
UNSTRING Example 6 01 DayStr  PIC XX.   01 MonthStr PIC XX.   01 YearStr  PIC XX.   01 DateStr  PIC X(11). 1 5 - - - 0 7 - - 9 4 ACCEPT DateStr. UNSTRING DateStr   DELIMITED BY  "-"   INTO DayStr, MonthStr, YearStr   ON OVERFLOW DISPLAY "Chars Left" END-UNSTRING.
UNSTRING Example 6 01 DayStr  PIC XX. 1 5   01 MonthStr PIC XX.   01 YearStr  PIC XX.   01 DateStr  PIC X(11). 1 5   - -  - 0 7 - - 9 4 ACCEPT DateStr. UNSTRING DateStr   DELIMITED BY  "-"   INTO DayStr, MonthStr, YearStr   ON OVERFLOW DISPLAY "Chars Left" END-UNSTRING. Chars Left
UNSTRING Example 7 01 OldName  PIC X(80). 01 TempName. 02 NameInitial  PIC X. 02 FILLER  PIC X(15). 01 NewName  PIC X(30). 01 Pointers. 02 StrPtr  PIC 99 VALUE 1. 02 UnstrPtr  PIC 99 VALUE 1. 88 NameProcessed VALUE 81. PROCEDURE DIVISION. ProcessName. ACCEPT OldName. PERFORM UNTIL NameProcessed UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr   END-UNSTRING   Display TempName END-PERFORM STOP RUN. Tim  John  Roberts
UNSTRING Example 7 01 OldName  PIC X(80). 01 TempName. 02 NameInitial  PIC X. 02 FILLER  PIC X(15). 01 NewName  PIC X(30). 01 Pointers. 02 StrPtr  PIC 99 VALUE 1. 02 UnstrPtr  PIC 99 VALUE 1. 88 NameProcessed VALUE 81. PROCEDURE DIVISION. ProcessName. ACCEPT OldName. PERFORM UNTIL NameProcessed UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr   END-UNSTRING   Display TempName END-PERFORM STOP RUN. Tim Tim   John  Roberts T im
UNSTRING Example 7 01 OldName  PIC X(80). 01 TempName. 02 NameInitial  PIC X. 02 FILLER  PIC X(15). 01 NewName  PIC X(30). 01 Pointers. 02 StrPtr  PIC 99 VALUE 1. 02 UnstrPtr  PIC 99 VALUE 1. 88 NameProcessed VALUE 81. PROCEDURE DIVISION. ProcessName. ACCEPT OldName. PERFORM UNTIL NameProcessed UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr   END-UNSTRING   Display TempName END-PERFORM STOP RUN. John Tim  John   Roberts J ohn
UNSTRING Example 7 01 OldName  PIC X(80). 01 TempName. 02 NameInitial  PIC X. 02 FILLER  PIC X(15). 01 NewName  PIC X(30). 01 Pointers. 02 StrPtr  PIC 99 VALUE 1. 02 UnstrPtr  PIC 99 VALUE 1. 88 NameProcessed VALUE 81. PROCEDURE DIVISION. ProcessName. ACCEPT OldName. PERFORM UNTIL NameProcessed UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr   END-UNSTRING   Display TempName END-PERFORM STOP RUN. Roberts Tim  John  Roberts R oberts
UNSTRING Example 8 OldName TempName NewName PROCEDURE DIVISION. ProcessName. ACCEPT OldName. UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr   END-UNSTRING PERFORM UNTIL NameProcessed STRING NameInitial "." DELIMITED BY SIZE  INTO NewName WITH POINTER StrPtr   END-STRING UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr   END-UNSTRING   END-PERFORM STRING SPACE TempName DELIMITED BY SIZE  INTO NewName WITH POINTER StrPtr   END-STRING STOP RUN. Tim  John  Roberts
UNSTRING Example 8 OldName TempName NewName PROCEDURE DIVISION. ProcessName. ACCEPT OldName. UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr   END-UNSTRING PERFORM UNTIL NameProcessed STRING NameInitial "." DELIMITED BY SIZE  INTO NewName WITH POINTER StrPtr   END-STRING UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr   END-UNSTRING   END-PERFORM STRING SPACE TempName DELIMITED BY SIZE  INTO NewName WITH POINTER StrPtr   END-STRING STOP RUN. Tim  John  Roberts T im
UNSTRING Example 8 OldName TempName NewName PROCEDURE DIVISION. ProcessName. ACCEPT OldName. UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr   END-UNSTRING PERFORM UNTIL NameProcessed STRING NameInitial "." DELIMITED BY SIZE  INTO NewName WITH POINTER StrPtr   END-STRING UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr   END-UNSTRING   END-PERFORM STRING SPACE TempName DELIMITED BY SIZE  INTO NewName WITH POINTER StrPtr   END-STRING STOP RUN. Tim  John  Roberts T  im T .
UNSTRING Example 8 OldName TempName NewName PROCEDURE DIVISION. ProcessName. ACCEPT OldName. UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr   END-UNSTRING PERFORM UNTIL NameProcessed STRING NameInitial "." DELIMITED BY SIZE  INTO NewName WITH POINTER StrPtr   END-STRING UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr   END-UNSTRING   END-PERFORM STRING SPACE TempName DELIMITED BY SIZE  INTO NewName WITH POINTER StrPtr   END-STRING STOP RUN. Tim  John  Roberts J ohn T .
UNSTRING Example 8 OldName TempName NewName PROCEDURE DIVISION. ProcessName. ACCEPT OldName. UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr   END-UNSTRING PERFORM UNTIL NameProcessed STRING NameInitial "." DELIMITED BY SIZE  INTO NewName WITH POINTER StrPtr   END-STRING UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr   END-UNSTRING   END-PERFORM STRING SPACE TempName DELIMITED BY SIZE  INTO NewName WITH POINTER StrPtr   END-STRING STOP RUN. Tim  John  Roberts J  ohn T .  J .
UNSTRING Example 8 OldName TempName NewName PROCEDURE DIVISION. ProcessName. ACCEPT OldName. UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr   END-UNSTRING PERFORM UNTIL NameProcessed STRING NameInitial "." DELIMITED BY SIZE  INTO NewName WITH POINTER StrPtr   END-STRING UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr   END-UNSTRING   END-PERFORM STRING SPACE TempName DELIMITED BY SIZE  INTO NewName WITH POINTER StrPtr   END-STRING STOP RUN. Tim  John  Roberts R oberts T . J .
UNSTRING Example 8 OldName TempName NewName PROCEDURE DIVISION. ProcessName. ACCEPT OldName. UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr   END-UNSTRING PERFORM UNTIL NameProcessed STRING NameInitial "." DELIMITED BY SIZE  INTO NewName WITH POINTER StrPtr   END-STRING UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr   END-UNSTRING   END-PERFORM STRING SPACE TempName DELIMITED BY SIZE  INTO NewName WITH POINTER StrPtr   END-STRING STOP RUN. Tim  John  Roberts R oberts T . J .  Roberts

Más contenido relacionado

Último

Call Girls Bellandur ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bellandur ☎ 7737669865☎ Book Your One night Stand (Bangalore)Call Girls Bellandur ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bellandur ☎ 7737669865☎ Book Your One night Stand (Bangalore)
amitlee9823
 
CHEAP Call Girls in Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in  Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in  Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Último (20)

Hotel And Home Service Available Kolkata Call Girls South End Park ✔ 62971435...
Hotel And Home Service Available Kolkata Call Girls South End Park ✔ 62971435...Hotel And Home Service Available Kolkata Call Girls South End Park ✔ 62971435...
Hotel And Home Service Available Kolkata Call Girls South End Park ✔ 62971435...
 
📞 Contact Number 8617697112 VIP East Sikkim Call Girls
📞 Contact Number 8617697112 VIP East Sikkim Call Girls📞 Contact Number 8617697112 VIP East Sikkim Call Girls
📞 Contact Number 8617697112 VIP East Sikkim Call Girls
 
VIP Model Call Girls Koregaon Park ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Koregaon Park ( Pune ) Call ON 8005736733 Starting From ...VIP Model Call Girls Koregaon Park ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Koregaon Park ( Pune ) Call ON 8005736733 Starting From ...
 
Model Call Girls In Velappanchavadi WhatsApp Booking 7427069034 call girl ser...
Model Call Girls In Velappanchavadi WhatsApp Booking 7427069034 call girl ser...Model Call Girls In Velappanchavadi WhatsApp Booking 7427069034 call girl ser...
Model Call Girls In Velappanchavadi WhatsApp Booking 7427069034 call girl ser...
 
Almora call girls 📞 8617697112 At Low Cost Cash Payment Booking
Almora call girls 📞 8617697112 At Low Cost Cash Payment BookingAlmora call girls 📞 8617697112 At Low Cost Cash Payment Booking
Almora call girls 📞 8617697112 At Low Cost Cash Payment Booking
 
College Call Girls Pune 8617697112 Short 1500 Night 6000 Best call girls Service
College Call Girls Pune 8617697112 Short 1500 Night 6000 Best call girls ServiceCollege Call Girls Pune 8617697112 Short 1500 Night 6000 Best call girls Service
College Call Girls Pune 8617697112 Short 1500 Night 6000 Best call girls Service
 
Verified Trusted Call Girls Tambaram Chennai ✔✔7427069034 Independent Chenna...
Verified Trusted Call Girls Tambaram Chennai ✔✔7427069034  Independent Chenna...Verified Trusted Call Girls Tambaram Chennai ✔✔7427069034  Independent Chenna...
Verified Trusted Call Girls Tambaram Chennai ✔✔7427069034 Independent Chenna...
 
Verified Trusted Call Girls Singaperumal Koil Chennai ✔✔7427069034 Independe...
Verified Trusted Call Girls Singaperumal Koil Chennai ✔✔7427069034  Independe...Verified Trusted Call Girls Singaperumal Koil Chennai ✔✔7427069034  Independe...
Verified Trusted Call Girls Singaperumal Koil Chennai ✔✔7427069034 Independe...
 
Verified Trusted Call Girls Ambattur Chennai ✔✔7427069034 Independent Chenna...
Verified Trusted Call Girls Ambattur Chennai ✔✔7427069034  Independent Chenna...Verified Trusted Call Girls Ambattur Chennai ✔✔7427069034  Independent Chenna...
Verified Trusted Call Girls Ambattur Chennai ✔✔7427069034 Independent Chenna...
 
Top Rated Kolkata Call Girls Dum Dum ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Top Rated Kolkata Call Girls Dum Dum ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...Top Rated Kolkata Call Girls Dum Dum ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Top Rated Kolkata Call Girls Dum Dum ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
 
Top Rated Kolkata Call Girls Khardah ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Top Rated Kolkata Call Girls Khardah ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...Top Rated Kolkata Call Girls Khardah ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Top Rated Kolkata Call Girls Khardah ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
 
Dum Dum ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready...
Dum Dum ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready...Dum Dum ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready...
Dum Dum ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready...
 
Call Girls Bellandur ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bellandur ☎ 7737669865☎ Book Your One night Stand (Bangalore)Call Girls Bellandur ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bellandur ☎ 7737669865☎ Book Your One night Stand (Bangalore)
 
❤Personal Whatsapp Number Keylong Call Girls 8617697112 💦✅.
❤Personal Whatsapp Number Keylong Call Girls 8617697112 💦✅.❤Personal Whatsapp Number Keylong Call Girls 8617697112 💦✅.
❤Personal Whatsapp Number Keylong Call Girls 8617697112 💦✅.
 
𓀤Call On 6297143586 𓀤 Sonagachi Call Girls In All Kolkata 24/7 Provide Call W...
𓀤Call On 6297143586 𓀤 Sonagachi Call Girls In All Kolkata 24/7 Provide Call W...𓀤Call On 6297143586 𓀤 Sonagachi Call Girls In All Kolkata 24/7 Provide Call W...
𓀤Call On 6297143586 𓀤 Sonagachi Call Girls In All Kolkata 24/7 Provide Call W...
 
Hotel And Home Service Available Kolkata Call Girls Park Street ✔ 6297143586 ...
Hotel And Home Service Available Kolkata Call Girls Park Street ✔ 6297143586 ...Hotel And Home Service Available Kolkata Call Girls Park Street ✔ 6297143586 ...
Hotel And Home Service Available Kolkata Call Girls Park Street ✔ 6297143586 ...
 
Kanpur call girls 📞 8617697112 At Low Cost Cash Payment Booking
Kanpur call girls 📞 8617697112 At Low Cost Cash Payment BookingKanpur call girls 📞 8617697112 At Low Cost Cash Payment Booking
Kanpur call girls 📞 8617697112 At Low Cost Cash Payment Booking
 
CHEAP Call Girls in Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in  Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in  Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Hotel And Home Service Available Kolkata Call Girls Lake Town ✔ 6297143586 ✔C...
Hotel And Home Service Available Kolkata Call Girls Lake Town ✔ 6297143586 ✔C...Hotel And Home Service Available Kolkata Call Girls Lake Town ✔ 6297143586 ✔C...
Hotel And Home Service Available Kolkata Call Girls Lake Town ✔ 6297143586 ✔C...
 
2k Shot Call girls Laxmi Nagar Delhi 9205541914
2k Shot Call girls Laxmi Nagar Delhi 92055419142k Shot Call girls Laxmi Nagar Delhi 9205541914
2k Shot Call girls Laxmi Nagar Delhi 9205541914
 

Destacado

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Destacado (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Unstring

  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7. UNSTRING Example 1 01 DayStr PIC XX. 01 MonthStr PIC XX. 01 YearStr PIC XX. 01 DateStr PIC X(8). 1 9 - 0 5 - 8 0 ACCEPT DateStr. UNSTRING DateStr INTO DayStr, MonthStr, YearStr ON OVERFLOW DISPLAY "Chars Left" END-UNSTRING.
  • 8. UNSTRING Example 1 01 DayStr PIC XX. 1 9 01 MonthStr PIC XX. 01 YearStr PIC XX. 01 DateStr PIC X(8). 1 9 - 0 5 - 8 0 ACCEPT DateStr. UNSTRING DateStr INTO DayStr , MonthStr, YearStr ON OVERFLOW DISPLAY "Chars Left" END-UNSTRING.
  • 9. UNSTRING Example 1 01 DayStr PIC XX. 1 9 01 MonthStr PIC XX. - 0 01 YearStr PIC XX. 01 DateStr PIC X(8). 1 9 - 0 5 - 8 0 ACCEPT DateStr. UNSTRING DateStr INTO DayStr, MonthStr, YearStr ON OVERFLOW DISPLAY "Chars Left" END-UNSTRING.
  • 10. UNSTRING Example 1 01 DayStr PIC XX. 1 9 01 MonthStr PIC XX. - 0 01 YearStr PIC XX. 5 - 01 DateStr PIC X(8). 1 9 - 0 5 - 8 0 ACCEPT DateStr. UNSTRING DateStr INTO DayStr, MonthStr, YearStr ON OVERFLOW DISPLAY "Chars Left" END-UNSTRING.
  • 11. UNSTRING Example 1 01 DayStr PIC XX. 1 9 01 MonthStr PIC XX. - 0 01 YearStr PIC XX. 5 - 01 DateStr PIC X(8). 1 9 - 0 5 - 8 0 ACCEPT DateStr. UNSTRING DateStr INTO DayStr, MonthStr, YearStr ON OVERFLOW DISPLAY "Chars Left" END-UNSTRING. Chars Left
  • 12. UNSTRING Example 2 01 DayStr PIC XX. 01 MonthStr PIC XX. 01 YearStr PIC XX. 01 DateStr PIC X(14). 1 9 s t o p 0 5 s t o p 8 0 ACCEPT DateStr. UNSTRING DateStr DELIMITED BY "stop" INTO DayStr, MonthStr, YearStr ON OVERFLOW DISPLAY "Chars Left" END-UNSTRING.
  • 13. UNSTRING Example 2 01 DayStr PIC XX. 1 9 01 MonthStr PIC XX. 01 YearStr PIC XX. 01 DateStr PIC X(14). 1 9 s t o p 0 5 s t o p 8 0 ACCEPT DateStr. UNSTRING DateStr DELIMITED BY "stop" INTO DayStr, MonthStr, YearStr ON OVERFLOW DISPLAY "Chars Left" END-UNSTRING.
  • 14. UNSTRING Example 2 01 DayStr PIC XX. 1 9 01 MonthStr PIC XX. 0 5 01 YearStr PIC XX. 01 DateStr PIC X(14). 1 9 s t o p 0 5 s t o p 8 0 ACCEPT DateStr. UNSTRING DateStr DELIMITED BY "stop" INTO DayStr, MonthStr, YearStr ON OVERFLOW DISPLAY "Chars Left" END-UNSTRING.
  • 15. UNSTRING Example 2 01 DayStr PIC XX. 1 9 01 MonthStr PIC XX. 0 5 01 YearStr PIC XX. 8 0 01 DateStr PIC X(14). 1 9 s t o p 0 5 s t o p 8 0 ACCEPT DateStr. UNSTRING DateStr DELIMITED BY "stop" INTO DayStr, MonthStr, YearStr ON OVERFLOW DISPLAY "Chars Left" END-UNSTRING.
  • 16. UNSTRING Example 3 01 DayStr PIC XX. 1 9 01 MonthStr PIC XX. 01 YearStr PIC XX. 01 DateStr PIC X(8). 1 9 - 0 5 / 8 0 ACCEPT DateStr. UNSTRING DateStr DELIMITED BY "/" OR "-" INTO DayStr DELIMITER IN Hold1 MonthStr DELIMITER IN Hold2 YearStr END-UNSTRING. DISPLAY DayStr SPACE MonthStr SPACE YearStr. DISPLAY Hold1 SPACE Hold2
  • 17. UNSTRING Example 3 01 DayStr PIC XX. 1 9 01 MonthStr PIC XX. 0 5 01 YearStr PIC XX. 01 DateStr PIC X(8). 1 9 - 0 5 / 8 0 ACCEPT DateStr. UNSTRING DateStr DELIMITED BY "/" OR "-" INTO DayStr DELIMITER IN Hold1 MonthStr DELIMITER IN Hold2 YearStr END-UNSTRING. DISPLAY DayStr SPACE MonthStr SPACE YearStr. DISPLAY Hold1 SPACE Hold2
  • 18. UNSTRING Example 3 01 DayStr PIC XX. 1 9 01 MonthStr PIC XX. 0 5 01 YearStr PIC XX. 8 0 01 DateStr PIC X(8). 1 9 - 0 5 / 8 0 ACCEPT DateStr. UNSTRING DateStr DELIMITED BY "/" OR "-" INTO DayStr DELIMITER IN Hold1 MonthStr DELIMITER IN Hold2 YearStr END-UNSTRING. DISPLAY DayStr SPACE MonthStr SPACE YearStr. DISPLAY Hold1 SPACE Hold2
  • 19. UNSTRING Example 3 01 DayStr PIC XX. 1 9 01 MonthStr PIC XX. 0 5 01 YearStr PIC XX. 8 0 01 DateStr PIC X(8). 1 9 - 0 5 / 8 0 ACCEPT DateStr. UNSTRING DateStr DELIMITED BY "/" OR "-" INTO DayStr DELIMITER IN Hold1 MonthStr DELIMITER IN Hold2 YearStr END-UNSTRING. DISPLAY DayStr SPACE MonthStr SPACE YearStr. DISPLAY Hold1 SPACE Hold2 19 05 80 - /
  • 20. UNSTRING Example 4 01 DayStr PIC XX. 01 MonthStr PIC XX. 01 YearStr PIC XX. 01 DateStr PIC X(8). 1 9 - 0 5 / 8 0 ACCEPT DateStr. UNSTRING DateStr DELIMITED BY "/" OR "-" INTO DayStr DELIMITER IN Hold1 MonthStr DELIMITER IN Hold1 YearStr END-UNSTRING. DISPLAY DayStr SPACE MonthStr SPACE YearStr. DISPLAY Hold1
  • 21. UNSTRING Example 4 01 DayStr PIC XX. 1 9 01 MonthStr PIC XX. 0 5 01 YearStr PIC XX. 8 0 01 DateStr PIC X(8). 1 9 - 0 5 / 8 0 ACCEPT DateStr. UNSTRING DateStr DELIMITED BY "/" OR "-" INTO DayStr DELIMITER IN Hold1 MonthStr DELIMITER IN Hold1 YearStr END-UNSTRING. DISPLAY DayStr SPACE MonthStr SPACE YearStr. DISPLAY Hold1 19 05 80 /
  • 22. UNSTRING Example 5 01 DayStr PIC XX. 01 MonthStr PIC XX. 01 YearStr PIC XX. 01 DateStr PIC X(11). 1 5 - - - 0 7 - - 9 4 ACCEPT DateStr. UNSTRING DateStr DELIMITED BY ALL "-" INTO DayStr, MonthStr, YearStr ON OVERFLOW DISPLAY "Chars Left" END-UNSTRING.
  • 23. UNSTRING Example 5 01 DayStr PIC XX. 1 5 01 MonthStr PIC XX. 0 7 01 YearStr PIC XX. 9 4 01 DateStr PIC X(11). 1 5 - - - 0 7 - - 9 4 ACCEPT DateStr. UNSTRING DateStr DELIMITED BY ALL "-" INTO DayStr, MonthStr, YearStr ON OVERFLOW DISPLAY "Chars Left" END-UNSTRING.
  • 24. UNSTRING Example 6 01 DayStr PIC XX. 01 MonthStr PIC XX. 01 YearStr PIC XX. 01 DateStr PIC X(11). 1 5 - - - 0 7 - - 9 4 ACCEPT DateStr. UNSTRING DateStr DELIMITED BY "-" INTO DayStr, MonthStr, YearStr ON OVERFLOW DISPLAY "Chars Left" END-UNSTRING.
  • 25. UNSTRING Example 6 01 DayStr PIC XX. 1 5 01 MonthStr PIC XX. 01 YearStr PIC XX. 01 DateStr PIC X(11). 1 5 - - - 0 7 - - 9 4 ACCEPT DateStr. UNSTRING DateStr DELIMITED BY "-" INTO DayStr, MonthStr, YearStr ON OVERFLOW DISPLAY "Chars Left" END-UNSTRING. Chars Left
  • 26. UNSTRING Example 7 01 OldName PIC X(80). 01 TempName. 02 NameInitial PIC X. 02 FILLER PIC X(15). 01 NewName PIC X(30). 01 Pointers. 02 StrPtr PIC 99 VALUE 1. 02 UnstrPtr PIC 99 VALUE 1. 88 NameProcessed VALUE 81. PROCEDURE DIVISION. ProcessName. ACCEPT OldName. PERFORM UNTIL NameProcessed UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr END-UNSTRING Display TempName END-PERFORM STOP RUN. Tim John Roberts
  • 27. UNSTRING Example 7 01 OldName PIC X(80). 01 TempName. 02 NameInitial PIC X. 02 FILLER PIC X(15). 01 NewName PIC X(30). 01 Pointers. 02 StrPtr PIC 99 VALUE 1. 02 UnstrPtr PIC 99 VALUE 1. 88 NameProcessed VALUE 81. PROCEDURE DIVISION. ProcessName. ACCEPT OldName. PERFORM UNTIL NameProcessed UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr END-UNSTRING Display TempName END-PERFORM STOP RUN. Tim Tim John Roberts T im
  • 28. UNSTRING Example 7 01 OldName PIC X(80). 01 TempName. 02 NameInitial PIC X. 02 FILLER PIC X(15). 01 NewName PIC X(30). 01 Pointers. 02 StrPtr PIC 99 VALUE 1. 02 UnstrPtr PIC 99 VALUE 1. 88 NameProcessed VALUE 81. PROCEDURE DIVISION. ProcessName. ACCEPT OldName. PERFORM UNTIL NameProcessed UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr END-UNSTRING Display TempName END-PERFORM STOP RUN. John Tim John Roberts J ohn
  • 29. UNSTRING Example 7 01 OldName PIC X(80). 01 TempName. 02 NameInitial PIC X. 02 FILLER PIC X(15). 01 NewName PIC X(30). 01 Pointers. 02 StrPtr PIC 99 VALUE 1. 02 UnstrPtr PIC 99 VALUE 1. 88 NameProcessed VALUE 81. PROCEDURE DIVISION. ProcessName. ACCEPT OldName. PERFORM UNTIL NameProcessed UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr END-UNSTRING Display TempName END-PERFORM STOP RUN. Roberts Tim John Roberts R oberts
  • 30. UNSTRING Example 8 OldName TempName NewName PROCEDURE DIVISION. ProcessName. ACCEPT OldName. UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr END-UNSTRING PERFORM UNTIL NameProcessed STRING NameInitial "." DELIMITED BY SIZE INTO NewName WITH POINTER StrPtr END-STRING UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr END-UNSTRING END-PERFORM STRING SPACE TempName DELIMITED BY SIZE INTO NewName WITH POINTER StrPtr END-STRING STOP RUN. Tim John Roberts
  • 31. UNSTRING Example 8 OldName TempName NewName PROCEDURE DIVISION. ProcessName. ACCEPT OldName. UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr END-UNSTRING PERFORM UNTIL NameProcessed STRING NameInitial "." DELIMITED BY SIZE INTO NewName WITH POINTER StrPtr END-STRING UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr END-UNSTRING END-PERFORM STRING SPACE TempName DELIMITED BY SIZE INTO NewName WITH POINTER StrPtr END-STRING STOP RUN. Tim John Roberts T im
  • 32. UNSTRING Example 8 OldName TempName NewName PROCEDURE DIVISION. ProcessName. ACCEPT OldName. UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr END-UNSTRING PERFORM UNTIL NameProcessed STRING NameInitial "." DELIMITED BY SIZE INTO NewName WITH POINTER StrPtr END-STRING UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr END-UNSTRING END-PERFORM STRING SPACE TempName DELIMITED BY SIZE INTO NewName WITH POINTER StrPtr END-STRING STOP RUN. Tim John Roberts T im T .
  • 33. UNSTRING Example 8 OldName TempName NewName PROCEDURE DIVISION. ProcessName. ACCEPT OldName. UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr END-UNSTRING PERFORM UNTIL NameProcessed STRING NameInitial "." DELIMITED BY SIZE INTO NewName WITH POINTER StrPtr END-STRING UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr END-UNSTRING END-PERFORM STRING SPACE TempName DELIMITED BY SIZE INTO NewName WITH POINTER StrPtr END-STRING STOP RUN. Tim John Roberts J ohn T .
  • 34. UNSTRING Example 8 OldName TempName NewName PROCEDURE DIVISION. ProcessName. ACCEPT OldName. UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr END-UNSTRING PERFORM UNTIL NameProcessed STRING NameInitial "." DELIMITED BY SIZE INTO NewName WITH POINTER StrPtr END-STRING UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr END-UNSTRING END-PERFORM STRING SPACE TempName DELIMITED BY SIZE INTO NewName WITH POINTER StrPtr END-STRING STOP RUN. Tim John Roberts J ohn T . J .
  • 35. UNSTRING Example 8 OldName TempName NewName PROCEDURE DIVISION. ProcessName. ACCEPT OldName. UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr END-UNSTRING PERFORM UNTIL NameProcessed STRING NameInitial "." DELIMITED BY SIZE INTO NewName WITH POINTER StrPtr END-STRING UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr END-UNSTRING END-PERFORM STRING SPACE TempName DELIMITED BY SIZE INTO NewName WITH POINTER StrPtr END-STRING STOP RUN. Tim John Roberts R oberts T . J .
  • 36. UNSTRING Example 8 OldName TempName NewName PROCEDURE DIVISION. ProcessName. ACCEPT OldName. UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr END-UNSTRING PERFORM UNTIL NameProcessed STRING NameInitial "." DELIMITED BY SIZE INTO NewName WITH POINTER StrPtr END-STRING UNSTRING OldName DELIMITED BY ALL SPACES INTO TempName WITH POINTER UnstrPtr END-UNSTRING END-PERFORM STRING SPACE TempName DELIMITED BY SIZE INTO NewName WITH POINTER StrPtr END-STRING STOP RUN. Tim John Roberts R oberts T . J . Roberts