ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

rpg400 interview question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Re: rpg400 interview question

    yes sir
    really really thank you
    sorry for disturbing you so much
    i'm new to as 400
    thanks really
    please bear with my questions if they irritate you
    thannnnnnnnnnnnnnnnnnnnks

    Comment


    • #17
      Re: rpg400 interview question
      sir i need clarification on this whenever u are free that time you send me reply sir,job delay means,can't get you.

      ok kalyan..... yeah record lock will happened only in update mode with chain operation..

      .if u called the two program in same time.(even milliseconds also same) then only here record lock will occur.

      otherwise chain single record for update and also do the same update on the same record through another program.both updates will be happened in same time .put delay job then see record lock

      Comment


      • #18
        Re: rpg400 interview question

        Don't worry dude.......
        Everyone here was a new bee at one point of time....!!
        Keep working hard ......!!Soon you will stand at the other point to respond to the posts !!
        Thanks,
        Giri

        Comment


        • #19
          Re: rpg400 interview question

          Job Delay means....
          When you are running a program you can make the program stand still without doing anything using a CL fucntion called DLYJOB. You need to mentioned the time for how long u want this !!

          Just play with that command in CL programs ....
          Thanks,
          Giri

          Comment


          • #20
            Re: rpg400 interview question

            where i have to give that dlyjob command within the rpg program or in command line,

            Comment


            • #21
              Re: rpg400 interview question

              I would suggest first you learn some basic AS400 commands and then CL commands and how to call CL from RPG and RPG from CL programs !! This would help you a lot !!
              Thanks,
              Giri

              Comment


              • #22
                Re: rpg400 interview question

                while program is running means when we call a program or what i can't understand

                Comment


                • #23
                  Re: rpg400 interview question

                  to call cl from rpg we can use qcmdexec correct only.then where i have to give delay job dlyjob within cl and calling it via rpg ya

                  Comment


                  • #24
                    Re: rpg400 interview question

                    we have to include qcmdexec in our one rpg program and then call a clp containing the dlyjob command ah

                    Comment


                    • #25
                      Re: rpg400 interview question

                      you can use DLYJOB in CL program
                      PHP Code:
                      /* DELETE ALL LOGICAL FILES IN &V40FILES LIBRARY BEFORE COPY */   
                                                                                        
                       
                      DOIT:       CALL       PGM(CNVDLTLFPARM(&V40PGMS &V40FILES)    
                                                                                        
                       
                      /* DELAY THE JOB FOR 1 MINUTE TO ALLOW FOR THE SLOW MACHINES */  
                       /* TO COMPLETE THE INDEXING, ETC                             */  
                                                                                        
                                   
                      DLYJOB     DLY(60

                      in RPG using QCMDEXEC
                      PHP Code:
                       *                                                                  
                      c                   eval      cmdstring 'dlyjob 10'               
                      c                   eval      cmdlength = %len(%trim(cmdstring))    
                      c                   call(e)   'QCMDEXC'                             
                      c                   parm                    cmdstring               
                      c                   parm                    cmdlength 
                      or sleep function in RPG

                      PHP Code:
                       **-- Delay job:                                              
                       
                      d $dlyjob         Pr            10i 0 ExtProc'sleep' )     
                       
                      d  seconds                      10u 0 Value                  


                              dou count 
                      5;                                            
                              
                      os400_cmd 'snddst type(*lmsg) ' +                       
                                          
                      'tointnet((' + %trim(EmailAddress) +      
                                          
                      ')) dstd(' Q    +                       
                                          
                      'Hey Its me '     +                           
                                          %
                      trim(@job)  + '  ' + %char(%time())  +       
                                          
                      ') longmsg(' Q  +                       
                                          
                      'Dave the time is ' +                         
                                          %
                      char(%time())   +                            
                                          
                      ')';                                      
                                 
                      qcmdexc os400_cmd : %size os400_cmd ) );           
                                 
                      $dlyjob(1);                                            
                                 
                      count +=1;                                             
                              
                      enddo

                      jamie
                      All my answers were extracted from the "Big Dummy's Guide to the As400"
                      and I take no responsibility for any of them.

                      www.code400.com

                      Comment


                      • #26
                        Re: rpg400 interview question

                        thanks jamie
                        i know only rpg400 and not ile.if possible send me those things in rpg400
                        please help
                        thanks really

                        Comment


                        • #27
                          Re: rpg400 interview question

                          dlyjob is the cl command

                          you can delay the job that ur submitted earlier

                          Comment


                          • #28
                            Re: rpg400 interview question

                            Based on the thread title, it sounds like the OP is trying to get answers to an online interview question to get a job that he/she is obviously not qualified for... I have a bit of a problem with that.

                            Comment


                            • #29
                              Re: rpg400 interview question

                              I'm with soup on this one.
                              Philippe

                              Comment

                              Working...
                              X